Display Jira Custom Field in Velocity Template
You want to show a custom field value in JIRA's (NOT Service Desk's!) notification mails. To achieve this, you need to create a new custom field for the field, and add that custom field to an email template. So, please try this:
- Create a new custom field
- In case of UPJ field: Create a new User Profile Field for the reporter's telephone number, as described in our product documentation.
- Update or create a new email template, as described in Atlassian's documentation.
- Add the newly created custom field to the email template of your choice, as described in Atlassian's developer documentation.
The important code snippets are (remember to insert your own custom field ID):- The field's name:
$issue.getCustomField("customfield_10000").name
- The field's value:
$issue.getCustomFieldValue("customfield_10000")
- The field's name:
Related Articles