Hi all,
we use Jama also for Risk Analysis and just updated to 8.79.1 (self hosted) today. I setup the new lookup matrix feature to calculate P total and the Risk Level. In the previous version, we simply used pickup lists to select the P total and the Risk Level manually.
When I now run our velocity report to export the risk analysis, I only get a number for the calculated lookup value, instead of the text. With just the picklist, the following code worked to get the text value and the associated color:
#set( $prePTotal = "")
#set( $prePTotal = $velocityReportUtil.getValueForField($r, "p_total", $dateFormat))
##Get the color it displays in Jama
###set( $newItem = $contourItemDao.getContourItem($doc.id))
###set( $customFields = $newItem.getCustomFields())
#set( $docTypeField = $documentTypeFieldDao.getDocumentTypeFieldByName("p_total", $r.documentType.id))
#set( $lookupTypeId = $docTypeField.getLookupTypeId())
#set( $fieldId = $docTypeField.documentField.id)
#set( $lookupTypeList = [])
#if( $lookupTypeList.add($lookupTypeId)) #end
#set( $getLookupIdsReturn = $lookupDao.getLookupIdsByLookupTypes($lookupTypeList))
#set( $lookupValues = [])
#foreach( $l in $getLookupIdsReturn)
#set( $lookup = $lookupDao.getLookup($mathTool.toInteger($l)))
#if( $lookupValues.add( $lookup)) #end
##$lookup<br>
##$lookup.name, $lookup.color, $lookup.description<br>
#end
#set( $color = '')
#foreach( $l in $lookupValues)
#if( $l.name == $prePTotal)
#set( $color = $l.color)
#break
#end
#end
Output example:

What would I need to change to get the text and the color of the calculated lookup value?
Thanks!
------------------------------
Patrick
------------------------------