Hi experts,
We need to add one static sentence to all email notifications, in the subject AND the body.
Please help finding the files that need to be modified.
We tried header.vm, footer.vm and a few more in /WEB-INF/classes/templates/email/html/includes with no effect.
We restarted the JIRA service after each change.
Thanks for your help,
Oliver
The header and footer .vm files you have found are the right place to do this, so the question is what you changed and why it's not working. Can you make a really simple change to the footer.vm (just add a line of plain text at the bottom), restart JIRA and then tell us what you get when you comment on an issue (assuming your account is set up to get html email rather than plain text)
Hi Nic,
Thank you for your reply.
I actually got this to work for adding comments now.
The thing is: The display footer is different in the "Created" notification.
When looking at the "issuecreated.vm" it still includes the same footer.
Can you give a tip on where to put my text so it displays for all notifications?
Thanks and regads,
Oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, that's good that you're able to see changes.
Your text should just go in the header or footer, as they're included in all emails about issues (except subscriptions). So the question is what's different about the create. I'm assuming you made your working change in the footer and not in the body of the comment email, so we need to look at why that's different. Assuming the create and comment vms both say #parse(footer.vm) in the same way, then we just need to look at the footer.vm and where your code is in it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like the difference is between customer and agent.
For customers the changes are visible, for agents they are not...
Regards,
Oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, hang on, that's Service Desk mails, not JIRA Core. Service Desk mails are built with different templates - they're bundled inside the Service Desk application and are really difficult to get at, because you have to unpack it, hack them and re-pack it. It's not something I can recommend (as I've never got any repacking to work)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, OK.
So the files in /WEB-INF/classes/templates/email/html/includes are used when an agent does something in JIRA itself.
Well, then I need the file(s) that I need to change in Service Desk
Actually we modified a few soy files in service desk already, so rebundling is not a problem.
Can you please let me know which file(s) I need to adjust?
Thanks,
Oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd like to, but my attempts to rebundle were around stuff that had nothing to do with email, so I don't know where they are!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Never mind, you helped a lot already.
Thanks a million!
Best regards,
Oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.