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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

808 views 2 19
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