Restrict workflow transition to specific group - Cloud

Restrict workflow transition to specific group - Cloud

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 1

As a Jira Administrator or Workflow Administrator:

  1. Click the Cog icon to open the Settings menu and select Issues

  2. Click Workflows

  3. Navigate to your workflow and edit your workflow to create a draft version

  4. Select the transition

  5. Select the Validators tab.

  6. Click Add validator

  7. Select Conditioned validator (Bob Swift) validator and add

Step 2

Enter the following:

  1. 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.

  2. Error Message: "You must be a member of the 'administrators' group or issue priority must be 'Highest' to transition the workflow status."

  3. Click the Add button to save your configuration.

 

Step 3

  1. Ensure to publish your workflow. It is always recommended to save a backup of the previous workflow when prompted.

  2. Navigate to an issue

  3. The transition of the respective issue results in an error if the validation fails.

 

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.