It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to customize 'Issue Commented' and 'Issue Updated' notification e-mail templates per project?

I have followed the instructions given in the following page and customized the e-mail content for issue creation notification of one one of the projects.

https://confluence.atlassian.com/display/JIRA051/Customising+Email+Content

Steps followed:

  1. Did the changes specified in the above document and created a new template
  2. Created a new event
  3. Updated the workflow's 'Create' transition to fire the newly created event.
  4. Created a new notification scheme, associated with the project and associated notifications to the new event instead of the 'Issue Created' system event.

This worked. But my question is how to customize the email template for other events such as 'Issue Commented' and 'Issue Updated', making the customization only applicable for a given project/s?

Thanks!

3 answers

1 accepted

2 votes
Answer accepted
Andy Brook (DEV) Jan 23, 2013

You can customize the underlying event template, doing inline project checks that tweak or otherwise use other templates.

With this kind of change, your customization needs to be managed, whatever route is taken, you will end up with custom velocity templates that need to be migrated for potential compatibility changes over time.

Alternatively, JEMH, normally thought of for inbound mail processing, also has full support for customizing IssueEvent templates. These templates can then be picked in a per-project IssueEvent handler that takes over from JIRA doing its notification. JIRA Notification schemes still apply, its just not associated in the project, but in the IssueEvent handler project mapping. See https://javahollic.atlassian.net/wiki/pages/viewpage.action?pageId=2916411 for a run through.

There are other plugins offering similar edit features, though I dont know if they have import/export capabilities for migrating between environments as JEMH 1.3 has.

Sue Retzer Jun 17, 2013

The listed URL is not there any longer... Is there a new one?

Andy Brook (DEV) Jun 17, 2013

Yea, I was asked to move along by Oracle :) All documentation now lives at https://thepluginpeople.atlassian.net/wiki/display/JEMH

Template Sets How To : https://thepluginpeople.atlassian.net/wiki/pages/viewpage.action?pageId=2850840

1 vote
Nic Brough [Adaptavist] Community Leader Jan 23, 2013

Not in the UI, but you can hard-code it in the template. Just do:

#if project == x

text for project X

#else

text for all the other projects

#end

0 votes
Vishnukumar Vasudevan [ACP-JA] Community Leader Jan 23, 2013

You can do this only globally. Refer here.

Notification templates are not project specific. Perhaps you can try any plugins.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

2,410 views 6 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you