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

This widget could not be displayed.
Henning Tietgens Community Champion Jan 21, 2014

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.

Henning Tietgens Community Champion Jan 21, 2014

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; }.

This widget could not be displayed.

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,


This widget could not be displayed.

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.

This widget could not be displayed.


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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

99 views 1 0
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