The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
SERVER
VERSION
9.5.1
TAGS
AUG Leaders

Atlassian Community Events