How to change the velocity template so that the Assignee is listed in an email notification?

Does anyone know if it's possible to do something like the following? 

Basically we'd like to include an issue's Assignee in a velocity email template sent out by JIRA. I'm not sure how to implement something like this.

2016-06-16_15_30_37-List assignee in notification email - Premier Support - Service Desk.png

 

2 answers

Thanks, Benjamin.

 

I wasn't able to that #parse command to work.

 

But in case it helps someone, I was able to replicate what is in the screenshot by changing
/WEB-INF/classes/templates/email/html/includes/patterns/issue-title.vm

specifically the line
$projectLink / $issueIcon $issueLink

to

$projectLink / $issueIcon $issueLink #if ($issue.assignee.displayName) / Assignee: $issue.assignee.displayName #end

 

 

 

Hi Jon,

the basic documentation for this you will find here: https://confluence.atlassian.com/adminjiraserver071/customizing-email-content-802592932.html

 

To add the Assignee in your eMail you need to:

  • search the "set-issue-details-context.vm" in "WEB-INF/classes/templates/email/html/includes"
  • add "#parse("templates/email/html/includes/fields/assignee.vm")" on the position you like to have it
  • restart your JIRA

warning Please take note of the information in the linked documentation above and ALWAYS keep a set of backups of the original files warning

 

greetings

Benjamin

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,774 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot