If you are using the Email This Issue plugin and want to include the Insight attributes stored in an Insight custom field this is how you write it in the velocity template.
Attributes that are not of the type Default will be rendered as their ID and not the String representation. e.g. an attribute of type Project will render the ProjectId and not the ProjectName. Attribute of Default type will be rendered with the String representation e.g. Text, Textarea, email etc |
#set($insightCustomField = $!customfieldManager.getCustomFieldObject("customfield_10000"))
#set($objectBeans = $!issue.getCustomFieldValue($!insightCustomField))
#foreach( $objectBean in $!objectBeans)
$!objectBean.getLabel()
#foreach( $attributeBean in $!objectBean.getObjectAttributeBeans())
#foreach( $attributeValueBean in $!attributeBean.getObjectAttributeValueBeans())
$!attributeValueBean.toString()
#end
#end
#end |