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 votes
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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,737 views 17 21
Read article

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