Want to customize the email templates to indicate the "role" of the person who receive the email.

Sébastien Frade November 15, 2012

Hi,

I receive email from our JIRA implementation each time an issue is created, updated...

This email can be sent to me because I can be the reporter, the assignee or I'm part the watchers or the voters.

I would like to customize the email templates so there is a sentence specifying why we receive this email.

Such as:

Reason to receive email: reporter

or

Reason to receive email: watcher

My goal is to compare email addresses.

I know how to get email for a reporter/assignee.

I don't know how to do it for watchers and voters.

I don't neither how to get email of the notifier (the person who will receive the email).

May you please help?

Cheers,

Sebastien

1 answer

0 votes
vkharisma
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 15, 2012

Hi Sebastien,

You will need to modify the velocity file. Please refer here for an example:

Customising Email Content

Hope this helps. Vicky.

Sébastien Frade November 18, 2012

Hi Vicky,

Would you know how to fetch the email adress of the mail recipient?
I'd like to compare it to the email adress of the watchers, the reporter and the assignee.

Sebastien

Sébastien Frade November 21, 2012

I found that one of the contexts pass to Velocity is recipient.

Can I the use $recipient.getEmailAddress()?

Cheers,

Seb

Suggest an answer

Log in or Sign up to answer