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?
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.
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot