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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then you need to check the templates contain what you expect, as documented in the link I gave.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.