Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 Bobswift Create on Transition for Jira Cloud app.

Steps

Table plus
border0
heading0
multiplefalse
enableHeadingAttributesfalse
columnAttributesstyle="border:0;width=5%;",style="border:0;width=65%;",style="border:0;width=30%;max-width=30% !important;"
idsteps_table
enableSortingfalse
enableHighlightingfalse

Image Removed
Image Added

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

Image Removed
Image Added
Image Removed

Image Added

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

 button
  1.  button to save your configuration.

Image Removed


Image Added
Image Removed

Image Added

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.

Image Removed
Image Added