I am trying to add two custom field values into the body of my email. One field is a single line text field 'Custom Field A' and the other is a user picker field 'Custom Field B'.
How do you do this? For 'Custom Field B' I need the displayName to be in the email instead of the UserID.
Many thanks for your timely assistance.
The templates should be:
Text Field value: <% out << issue.getCustomFieldValue( com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("TextField") ) %> Single User picker value value: <% out << issue.getCustomFieldValue( com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("UserPicker") )?.displayName %>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.