Require a Comment when the state is Reopened

Conditions can also be set based on actions or states. If you want to require a comment when the state changes to say Reopened, you can put a condition based on that status, rather than specifying all actions that lead to that state.

The user will be required to enter a comment for any transition which leads to the state Reopened, which is the Reopen action from the Closed andResolved states in the default jira workflow. Note that this does not require a comment for an edit action when the state is Reopened, but it would for a transition that does not change the state, but whose result is Reopened.

Creating conditions based on states and actions is a little complex. Before setting any conditions you should set a "guide workflow". This simply allows the plugin to show you workflow elements from this plugin to choose from. If you later change the workflow for your project, it will continue to work, although if IDs have changed these will need to be adjusted, as, internally, only references to status and action IDs are stored, not names.

img26

Result:

img30

For how-to questions please ask on Atlassian Answers where there is a very active community. Adaptavist staff are also likely to respond there.

Ask a question about ScriptRunner for JIRA, for for Bitbucket Server, or for Confluence.