You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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