Forums

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

Implementing Paralell Transition (Conditional Transition)

Mohamed El Taweel March 20, 2018

- In project "Hr Vacations" we have two issue type "Emp Vaction Type" , "Worker Vacation Type" and "Management Vacation Type"


- Have transition "Approved" between status "Inprogress" and "Approve"

 

How can I implement the following using script runner
- If issue type is "Management Vaction Type" , only HRManagers group can approve.
- Any other issue type can be approved by HREmp group

How can we write ScriptRunner script to do this in details

or if it can be done using Jira

 

script runner 5.3.7 and jira 7.3.3

1 answer

0 votes
Nic Brough -Adaptavist-
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.
March 20, 2018

Not sure you need ScriptRunner for this (my memory is hazy on the built-in stuff I'm about to mention)

Create two workflows, one for Management Type, and one for all the others.  In the management type workflow, on the "approved" transition, add a condition - there should be a "user is member of group" one.

ScriptRunner can keep it more simple though, you can keep a single workflow and have a condition of "If issuetype is Management and user not in group X, fail"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events