Hi Atlassian fellas,
How can I add custom field value to the scriptrunners custom email template?
These all work well:
$issue.summary
$issue.issueType.name
$issue.reporter.displayName
$issue.description
But how to get the custom field values?
Hello @Kristjan Vilipõld
Thank you for reaching out.
To add custom field values to your Email template in a Scriptrunner Post Function, you can check the example added in the Send a custom email section of the documentation below:
Scriptrunner Post-functions - Send a custom email
Basically, this would be the reference code:
Custom field value: <% out << issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("MySelect")) %>
Let me know if this information helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.