Customized JIRA email templates not usable after upgrade from 5.2.4 to 6.1.6

Hi all,

I'm using test enviroment to upgrade out JIRA from 5.2.4 to 6.1.6.

One of the issues I'm facing is that customized email templates are not working anymore after upgrade. Where can I find updated version of the guide for customizing JIRA email content?

Or if anyone can point me to the right template to use for custom fields?

Here is the example file address.vm:

#if ($issue.getCustomFieldValue("customfield_10803"))
<tr valign="top">
    <td style="color:${textColour};font-family:${textFontFamily};font-size:${textSize};padding:0 10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:${textSubtleColour};">#text("Address"):</strong>
    <td style="color:${textColour};font-family:${textFontFamily};font-size:${textSize};padding:0 0 10px 0;width:100%;">

And my issuecreated.vm, where I parsed custom tempaltes:

<tr valign="top">
    <td id="email-banner" style="padding:32px 32px 0 32px;">
        #if ($issue.reporterUser)
            #set ($reporter = "#authorlink2($ $linkstyle)")
            #set ($reporter = "#text('')")

        #set ($issueType = $issue.getIssueTypeObject())

        #set ($issueLink = "#renderIcon(${issueType.iconUrlHtml} ${issueType.getNameTranslation($i18n)}) <a style='color:${textLinkColour};text-decoration:none;' href='${baseurl}/browse/${issue.getKey()}'>$issue.getKey()</a>")

        #emailbanner($issue.reporterUser "email.event.activity.created" $reporter $issueLink "")
<tr valign="top">
    <td id="email-fields" style="padding:0 32px 32px 32px;">
        <table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%">
            <tr valign="top">
                <td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">

4 answers

1 accepted

0 votes
Accepted answer

I think, you should take a look at the differences between your templates and the ones provided with the system. There were some changes in the user handling from 5.x to 6.x, maybe there is a problem. E.g the line "#if ($issue.reporterUser)" is now "#if ($issue.reporterId)".

On the page find pages to information for developers about the changes made to the system.

A best practice for me for release changes is to implement the changes made into the templates provided with the software and not use the old templates.

how to change the color of hyperlinks in email templates.We had dark blue color in 6.0.8 and now in 6.2.5 it is sky blue color,how can I change it?

There's BotoCssInliner, which job is to take rules from templates/email/css/*.css (however, it has hardcoded list of allowed files) and inject them into emails as inline styles. I believe it should be enough to change the line number 146 in templates/email/css/all-clients.css, which currently looks like this: a { color: #3b73af; text-decoration: none; }.

Hi Todor,

I've encountered the same problem and I simply recreated the changes I did in the old templates into the new templates. It's actually quiet straigthforward. Especially if you use the information provided by Henning.

Best regards,


Well, I didn't try to use the all old templates, I just used the ones created by me.

And ofcourse I reproduced the changes from old main templates ( e.g. issuecreated.vm ) in the templates in new version.

But the last time I had a starting point from documentation about inserting custom fields in JIRA emails. Rigth now I'm not sure if this documentation is up to date with the version 6.1.6.


additional information about changes made in email templates in JIRA 6.1 can be found at This containts a few examples how particular templates changed, along with further tips how to use new templates and macros. Hope this helps.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,234 views 5 10
Read article

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