• Community
  • Products
  • Jira
  • Questions
  • JIRA emails does not have all the details How can i fix this so emails from JIRA would have all the details for issues

JIRA emails does not have all the details How can i fix this so emails from JIRA would have all the details for issues

Sachin Ambulkar October 31, 2011

Hi there,

We have recently upgraded the JIRa 4.0.1 to JIRA 4.4.1 . But after migration i have noticed that emails coming for issues are not have the same format what we had in 4.0.1 . Is there any way that i can fix this issue by my own. we have the template in place .

Please guide me if some one have came accross this issue or done before.

Thanks

Sachin

5 answers

2 votes
Aspect Infra Team
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.
November 15, 2011

you can edit

*jira install dir*/atlassian-jira/WEB-INF/classes/templates/email/text/issueassigned.vm

for change only "assigned" event message or

*jira install dir* /atlassian-jira/WEB-INF/classes/templates/email/text/includes/issuesummary.vm

to change all emails as this template are parsed for all messages

for missing fields you should add

#if ($issue.getCustomFieldValue("customfield_10253"))
$stringUtils.leftPad($issue.getCustomField("customfield_10253").name, $padSize): $issue.getCustomFieldValue("customfield_10253")
#end

here customfield_10253 is combined from reserved word "customfield_" and id of you custom field you want to add

Sachin Ambulkar November 24, 2011

Hi Nic,

This issue have been resolved .. i found the old files that had customization.

So now my JIRA emails are back to normal level.

Thanks for all your suggesitions.

Regards

Sachin

0 votes
Sachin Ambulkar December 1, 2011

This needs to customised files which i dig out from my old JIRA server and now all seems to be OK to me.

Thanks

Sachin

0 votes
Sachin Ambulkar November 15, 2011

hi Nic,

I would like to mentioned that my issue is about when user get any issue assigned they recevie the email notification.

Those emails are not in good shape and format. Most of the details are missing from the email.

Thanks

sachin

Nic Brough -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.
November 15, 2011

Then you need to check the templates contain what you expect, as documented in the link I gave.

0 votes
Sachin Ambulkar October 31, 2011

Hi Nic,

Thank you for the answer . Can you provide some sample if you have created the files as i have everything ind the directory but the event which send emial is not picking up. I have desription , header ,footer files in place but those are not getting picked up it seems. have encounter similer issue any time.

Thanks

Sachin

Nic Brough -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.
October 31, 2011

I'm not in front of a dev box at the moment, so I've not got any samples. The changes I've made worked fine though (4.0 and 4.4), based on the info in that doc.

However, you say "the even which send email is not picking up" - that leads me to suspect you might have customised something, but then not actually used it. Could you explain *exactly* what files you have changed, and what events you are aiming to get modified emails for? And what happens when you trigger the events?

0 votes
Nic Brough -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.
October 31, 2011

To change the email templates, have a look at http://confluence.atlassian.com/display/JIRA/Customising+Email+Content

I know Atlassian have changed them somewhat between 4.0 and 4.4, but that page tells you how to do all sorts of handy stuff with them (I especially like that because they're .vm files, you can do some quite handy stuff, including "if" statements)

Suggest an answer

Log in or Sign up to answer