Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to configure my workflow approval step to go to different statuses based on a custom field value

Allison Stewart
Contributor
November 28, 2022

Hello,

I have a workflow that 'branches' based on a custom field called "Approval Level".  I would like to use the approval step on a status that could go to 2 different statuses based on the Approval Level.  But I can't see how to set the approval step to honor the Approval Level custom field and go to the correct destination status when approved.

For instance,

  • If Approval Level = L1
    • My workflow goes from Awaiting Level1 Approval -> Awaiting Comp Agreement when Awaiting Level1 Approval is approved.
  • If Approval Level = L2
    • My workflow goes from Awaiting Level1 Approval -> Awaiting Level2 Approval when Awaiting Level1 Approval is approved.
    • Then, when Awaiting Level2 Approval is approved, my workflow goes to Awaiting Comp Agreement.

approval workflow for comp agreements.png

Is it possible to set up the approval steps to be dynamic?

approval workflow for comp agreements2.png

 

Any help would be greatly appreciated.  Thank you.

 

2 answers

1 accepted

1 vote
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 28, 2022

Hi @Allison Stewart 

You can't do that unfortunately out of the box. You can only have one approve transition and one rejected.

Allison Stewart
Contributor
November 29, 2022

Perhaps with ScriptRunner?

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 1, 2022

You could create your "own" approvals with custom field, but these will not use the jira built in approval system. I don't think that scriptrunner is capable of messing around with this functionality.

0 votes
Léo Boulanger July 5, 2024

Hi ,
I was facing the same Problem.
I simply added a status called approval splitter behind that approval step. Upon a successfull approve, the approval Spliter transition is called. Then i added a automation, that takes any ticked entering the spliter state, and transitioning it based on the value of my custom field.

I hope my creative solution helped.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events