The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to modify the subject of the email sent from JIRA?

Vladimir Nikitin
May 5, 2015

We need to add the name mentioned in  @mentions in the subject of the email sent.

We plan to edit the header as mentioned in https://confluence.atlassian.com/display/JIRA/Customizing+Email+Content but do not know how to get mentions.

 

Thanks in advance.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Vladimir Nikitin
May 6, 2015

Thanks Jobin for your response.

issuementioned uses a variable called "remoteUser". What is this? I could not get its meaning - does it store the user mentioned in @mentions?

Where can I read the flow of how all the velocity scripts in header are used. Based on the name I think appropriate script is called when the issue is in that state like when comment is added then issuecommented.vm is called and that is how the header of the email is created.

Jobin Kuruvilla [Adaptavist]
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 Champions.
May 6, 2015

remoteUser is the user who is doing the action. I am not sure which variable has the mentioned user details. Haven't got a chance to explore on that yet.

Vladimir Nikitin
May 8, 2015

Thanks. We are able to get what we want in the header by modifying issuementioned.vm. It is working for all the new issues created but not when "mentions" is used in an old issue it is not invoked. only issuecommented is invoked. Any idea ...

Jobin Kuruvilla [Adaptavist]
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 Champions.
May 8, 2015

hmm, that's a bit strange. I would think that the same template is used for all issues. Any errors in the logs? How about after a restart?

0 votes
Jobin Kuruvilla [Adaptavist]
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 Champions.
May 5, 2015

Have you tried modifying the issuementioned.vm under subject folder, as mentioned in the link you provided?

TAGS
AUG Leaders

Atlassian Community Events