Hello,
Currently in training, I work on the transition of tickets on Jira and on sending a custom email.
I want to retrieve several elements of the ticket to send a custom mail.
I can recover the name of the reporter with "$ issue.reporter.displayName"
the name of the assignee with "$ issue.assignee.displayName"
but I can not get the value of the Customer field.
Can you help me please ?
Hello Daniel,
the information you are trying to get is not a standard field (as Assignee or Reporter are), but rather a custom field. To get custom field value for a specific issue, you have to use a Java component named customFieldManager.
You should be able to easily get reference to this component from Velocity context. For list of everything available to you in template, please see: https://community.atlassian.com/t5/Answers-Developer-Questions/What-is-in-the-velocity-context-for-JIRA/qaq-p/541382
Regards,
Martin
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.