Notifications for Issue Updates erroneously say Issue was Created

I'll regularly get notification emails that an issue has been created, even though it has merely been updated. For example, this morning I got the following email:


However, the only change I actually made to the issue was to update the status to "UA Ready":


In case it's relevant, the name of this transition is not even created:


How can this be fixed?

2 answers

1 accepted

1 vote
Accepted answer

If it's a transition, what notification you will get will typically depend on what event the transition emits in its post actions within the workflow, and what email template is associated with that event.  Assuming this is a notification due to a standard event, and not something custom, like a notification based on a Script Listener fired event.  In that case, you'd need to have separate listeners/events for create/update so you can select the appropriate template in the event definition.  And a notification sent entirely from a script, well... in that case, anything goes.

Aha, so here is my workflow transition post function and the email template for the event it's firing ( I created a new event, but when I added it, the default email template must have been the created template and I never overrode it.

Yes - so your custom event (Issue ready for UA) is using a system template (Issue Created) In order to create a new event and corresponding template, some work outside of the user interface is necessary. I just upgraded to JIRA 6 so I can help you if you need/want to do that. You need to edit email-template-id-mappings.xml to add your new template (e.g. readyforua.vm) and then edit an existing velocity template by copying it (e.g. issueupdated.vm) and changing its contents accordingly.

I suspect he just wants to use "Issue Updated" instead of "Issue Created" from the standard templates.

To re-iterate Jeremy's answer, go to the workflow to see what "event" is being generated by the workflow action "release to UA". It may be "Generic Event", or based on your report maybe it has been set to "Issue Created". Go to the "Post Functions" tab for the workflow and look for something like this: "Fire a Generic Event event that can be processed by the listeners.".

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Dec 10, 2018 in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

204 views 6 7
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