Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

An $issue for Customerfield

Daniel Jean April 13, 2018

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.

custom.png

 

Can you help me please ?

1 answer

1 accepted

1 vote
Answer accepted
MoroSystems Support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 13, 2018

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

Daniel Jean April 23, 2018

Thanks a lot for your help

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events