Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira Mail add Customfield value in Subject

Björn Thebbe October 6, 2015

Hallo everybody,

 

I have a question about the JIRA Mails to assignees oder issue-watchers. Is it possible to add for one special projecttype the custom field "customer" to the mail-subject?

 

Thank you.

Greetings, Björn

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Tibor Hegyi _META-INF_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 7, 2015

Hi Björn,

You can do this directly in the JIRA mail subject template.

You must include something like:

#if ($!issue.projectObject.key == 'MYKEY')$!issue.getCustomFieldValue("customfield_12345")#end
customfield_12345 is the key of your Customer custom field.

Subject templates in JIRA are in the file system: $JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/email/subject

Another option is to use a plugin such as Email This Issue. It allows you have different templates, subjects, implement flexible event notifications, and a lot more.

Cheers,

Tibor

0 votes
Björn Thebbe October 7, 2015

Hi Tibor,

 

thank you very much. I will test your code after my meeting marathon.

 

Greetings, Björn

TAGS
AUG Leaders

Atlassian Community Events