Forums

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

Jira Workflow with one or two parties to approve a ticket based on the value of a custom field

AB January 13, 2022

Hi all,

it would be kind if you support me in designing an approval workflow in JIRA (not helpdesk).

Each story has a custom select field like:

Relevant for:
(value1) Party 1
(value2) Party 2
(value3) both parties

So a story has to be approved by one or both parties. If both parties has to approve there is no rule which one does it first.

This means for value 1 or 2, only one party has to give the approval and then the story gets the next status.

Or for value 3, that the story only receives the next status as soon as both parties have confirmed.

How can I implement this best?

Thanks for your help!

1 answer

1 accepted

2 votes
Answer accepted
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 13, 2022

Hi @AB 

Since you are on server and also have ScriptRunner for Jira you can definitely build this logic in your workflow's condition. I guess Party 1 or 2 is a group or you have mapped somewhere who is in Party 1 or Party 2. May be you can use Project roles here. If you need staged approval then you can use a hidden custom field to track this information and use a scripted condition to allow a transition based on that custom field's value. I don't have an entire script to share but I did share a similar use case here where I explained how to build an approval system using ScriptRunner for Jira.

I hope it helps.

Ravi

AB January 14, 2022

Hi Ravi, your hints are helpful - I will check this on our test instance!

AB January 20, 2022

Hi Ravi,

thank you, your description helped me! I did similar to your video, except that at the end I automated the release transition with a condition.

Cheers,
Alexander

Suggest an answer

Log in or Sign up to answer