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

This widget could not be displayed.

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

 

 

 

This widget could not be displayed.

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
Community showcase
Posted yesterday in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

40 views 2 2
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