Jira custom email notifications

Rob Smith May 29, 2014

Running JIRA 5.1.6. I'm trying to get an issue's Due Date, if present, added to the email notifications. I have added the following code to WEB-INF/classes/templates/email/text/issuecreated.vm:

#if ($issue.getDueDate())
$stringUtils.leftPad($i18n.getText("issue.field.duedate"), $padSize): $dateformatter.formatDMYHMS($issue.getDueDate())
#end

That works for issues being newly created. However, I can't seem to get the field to show up on any other email notification (commented, edited, etc.). I've added the same block of code to WEB-INF/classes/templates/email/text/includes/issuesummary.vm, but the Due Date never appears.

Any help greatly appreciated.

1 answer

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 Leaders.
May 29, 2014

Are you getting notifications in html format? If so, you might want to add the code under html folder instead of text.

Also, make sure you restarted JIRA after making the changes.

Suggest an answer

Log in or Sign up to answer