Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-step approval logic

Ryan E
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 26, 2020

I'm working on a change approval workflow that goes through the following steps: 

* planning

* Manager Approval

* Change Board Approval

* Implementation

* Completed / Canceled

 

The complication comes in with the roles.  Each area has their own manager that can approve at the Manager Approval step.  All the manager sit on the Change Board and should be able to approve a change at that step - except if they already approved the change at the Manager Approval.  

I'm looking for a way to implement this logic that will basically prevent the same manager from approving a change at both the Manager Approval step and the Change Board Approval step. 

Any help or guidance is appreciated.  Fair warning, I'm not using ScriptRunner or other Jira Cloud customizations.

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Champion
June 29, 2020

Hi Ryan,

I can confirm that built in Jira Cloud has the Separation of Duties condition condition built in as described here which may help you to achieve your requirement as this prevents a user from transitioning an issue if he has already transitioned an issue to another step in a workflow previously.

Otherwise the ScriptRunner for Jira Cloud Script Validators or Script conditions could allow you to write your own validator expression to help with this requirement. One way you could do this would be to set the name of each approver in a custom field after they have approved and then to check if the user already exists in this field when they go to give approval.

I hope this information helps.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events