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 |
---|
border | 0 |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
columnAttributes | style="border:0;width=5%;",style="border:0;width=65%;",style="border:0;width=30%;max-width=30% !important;" |
---|
id | steps_table |
---|
enableSorting | false |
---|
enableHighlighting | false |
---|
|
Image RemovedImage Added | 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
| Image RemovedImage Added | Image Removed
| Image Added | 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 button button to save your configuration.
| Image Removed
Image Added | Image Removed
| Image Added | 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.
| Image RemovedImage Added |
|