Looking to setup JIRA automation that would require the person transitioning from one specific status to another to enter in a comment before the transition is complete.
Could anyone please help guide me in the right direction? Thank you
Are you working with issues in a Company Managed project or a Team Managed project?
For a Company Managed project you would create a screen that includes the comment field, attach that to each Transitions in the workflows where you want to require comment entry, and add a Validator to that transition to make the field required. The process is described for Jira Server/Data Center here, and is basically the same for Company Managed projects in Jira Cloud.
With Jira Cloud there is a native Field Required Validator available, so you wont' need a third party app for that.
Thank you for this @Trudy Claspill Our workflow transitions are handled as part of a global workflow which is applied to each project. Unfortunately we can not adjust the transitions in these global workflows to include checking for a comment.
That is why I was hoping I could write a JIRA automation rule that could be applied at a per project level to help with this.
Is it possible to achieve this using only JIRA automation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using Automation you will not be able to prevent the transition from happening. The best you could do is reverse the transition after the fact.
You would need an automation rule triggered on a change of status. Within that automation rule you would have to try to determine if a comment was entered, and if it was not, then revert the issue to its previous status.
Unfortunately, Jira does not natively provide methods to query on Comments. There are apps that would give you the ability to query for comments based on date and author, but that would not tell you if the comment was entered during the transition or just by the same person on the same day.
Are you interested in going down that imperfect path to try to address your issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
no @Trudy Claspill going down that path would not be worth the return in my opinion. however i really appreciate your guidance on this. Thank you so much for taking time to answer this for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.