Comment Entered During Transition Not Triggering "Issue Commented" Event

I would like the "Issue Commented" event to be triggered any time a user adds a comment (by selecting Comment, by adding a Comment under Edit, by adding a Comment during a transition), but it seems this is only happening when Comment is selected or a Comment is added at the bottom of the ticket. How do I ensure all comments added at any stage are firing an "Issue Commented" event?

1 answer

You can't without hackery. If you think about it, when you edit an issue, you (most likely) have the ability to do more than just add a comment. If you changed some field values and also added a comment, would it really make the most sense to fire off an "Issue Commented" alert? In the workflow, you can change which event is fired, so you could edit your workflow transition, and change the event to "Issue Commented" in the post-function of the transition, but you have the same problem as with Edit. If you present other fields there or your are closing an issue, does it really make the most sense to fire the Issue Commented event? You are able to edit what each notification does by modifying it's underlying velocity template (be sure to read the doc for the version of Jira you're running) to add the functionality you're looking for from the Issue Commented notification, so that would probably be the best way to achieve your goal. These changes do not survive an upgrade, so you'll want to document your changes so this doesn't become a headache during upgrade. I hope that helps.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in Off-topic

Friday Fun: Dry T-Shirt Competition - What's your BEST (Atlassian) T-Shirt!?

[Note: So it was my turn for Friday Fun and sadly I was sick thanks to rubbish sinus infection... so apologies to most of Europe and Asia for the delayed post. However, I finally got out of bed for t...

162 views 9 4
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