- 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
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"
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.