Custom Select List on email notification template

Nadeem Zakir April 18, 2023

Hi,

I have set up some velocity email templates to include custom fields on the email notificaiton email when an issue is created.  This works fine with text fields, but does not seem to work with select list.  Is this a bug, or not supported on email templates?  My code in the /includes/fields/response.vm is below;  custom field 14002 is the select list, doesnt display on the email, custom field 12089 is a text field, which works.  If you look at the image, response and categroy are the select lists and city is the text field.

 

#disable_html_escaping()
#set ($customfield = $customFieldManager.getCustomFieldObject("customfield_14002"))
#if($issue.getCustomFieldValue($customfield))
<tr>
<th>#text($customfield.name):</th>
<td class="has-icon">
$textutils.htmlEncode($issue.getCustomFieldValue($customfield), false)
</td>
</tr>
#end


#disable_html_escaping()
#set ($customfield = $customFieldManager.getCustomFieldObject("customfield_12089"))
#if($issue.getCustomFieldValue($customfield))
<tr>
<th>#text($customfield.name):</th>
<td class="has-icon">
$textutils.htmlEncode($issue.getCustomFieldValue($customfield), false)
</td>
</tr>
#end

 

image.png

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.5.1
TAGS
AUG Leaders

Atlassian Community Events