Comment Entered During Transition Not Triggering "Issue Commented" Event

Molly Favret May 19, 2014

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

0 votes
Dave Theodore [Coyote Creek Consulting]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 5, 2014

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