Restricting the availability of workflow transitions
Workflow transitions, by default, are accessible to anyone who has access to the issue. There will be times when you would want to restrict access to certain transitions. For example, you might want to restrict access to the Freeze Issue transition for the following reasons:
You want the transition to be available only to users in specific groups or project roles
Since the transition is a global transition, it is available to all the workflow statuses, but it does not make sense to show the transition when the issue is already in the Frozen status
To restrict the availability of a workflow transition, we can use workflow conditions.
Getting ready
For this recipe, we need to have the JIRA Suite Utilities add-on installed. You can download it from the following link, or install it directly from the Universal Plugin Manager:
https://marketplace.atlassian.com/plugins/com.googlecode.jira-suite-utilities
How to do it...
We need to create a new custom...