Description
There can be a scenario where a project workflow administrator wants to restrict a workflow transition in a project to a specific group of users. This can be achieved using Conditioned Validator provided by the Create on Transition for Jira Cloud app.
Steps
| Step 1As a Jira Administrator or Workflow Administrator: Click the Cog icon to open the Settings menu and select Issues Click Workflows Navigate to your workflow and edit your workflow to create a draft version Select the transition Select the Validators tab. Click Add validator Select Conditioned validator (Bob Swift) validator and add
| |
| Step 2Enter the following: Expression: "user.groups.includes('administrators') && issue.priority.id == '1'". This expression permits the transition through to the next state only if the user is a member of the Administrators group and the issue priority is 1. Error Message: "You must be a member of the 'administrators' group or issue priority must be 'Highest' to transition the workflow status." Click the Add button to save your configuration.
| |
| Step 3Ensure to publish your workflow. It is always recommended to save a backup of the previous workflow when prompted. Navigate to an issue The transition of the respective issue results in an error if the validation fails.
| |