Modifying of an email notifications' content using a plugin

Is it possible to modify the content of an email notification using a system-2 plugin and without modifying of the default email templates?

Maybe there are some plugin modules to achieve this?

For example, I need to change the email subject depending on the recipient user. At this moment, there were made a nubmer of modifications in default templates to implement this feature. Is there any other ways?

1 answer

0 vote
Pedro Cora Atlassian Team Oct 13, 2013

While you can make this with a plugin, you will need to also create your own velocity templates. Or make some heavy changes in the current ones to be used with the plugin.

Yes, I know this. As I mentioned before, I have a solution with the modified default templates, but I want to improve it.

As far as I understood from the source code, there is only one xml-file where mailing templates are defined. Did I miss something? Is it possible to switch the velocity template manager from the default templates to the plugin-provided ones without modifying of default templates or xml-files?

If you dont want to write or keep maintaining something to do this, JEMH provides template customization support, you can create a custom template in the UI without lower level file changes, the integrated editor allows you to edit the templates as needed. You could also paste existing text/html templates into JEMH Issue Event Template Sets also.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

511 views 1 18
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