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.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.