Forums

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

How can I restrict approvals to certain groups depending on a field selection in a single project?

Alec Jasanovsky
Contributor
April 27, 2020

There is one project to handle production deployments. Let's say I have three products (Products A, B, & C) with three correlating teams (Teams A, B & C) with multiple product approval leaders on each team. When an engineer on any one of the teams need to open a deploy ticket, they need to specify the Product Team so that the correlating product leads can approve the request. Currently a lead approves the ticket by transitioning the status into the "Approved" status and the only condition is that they must be set as the custom Role "Approver" for the project. This allows other leaders to improperly approve another teams product request. 

 

How can I restrict Leads from Team A from approving product requests that are related to Product B and should be approved by Team B Leads? 

 

We have scriptrunner, and Automation for Jira for assistance. This is also cloud. 

 

1 answer

0 votes
John Funk
Community Champion
April 28, 2020

Hi Alec,

Using Automation For Jira you should be able to set the value in the Approver field (i.e. add a user to that field) when the Product field is updated to identify which product is being requested. 

Alec Jasanovsky
Contributor
April 29, 2020

That makes sense - i would never allow the user to select the approver, and automate the approver group based on the product selection and only use the workflow instead of the role so that other leaders can't approve it unless they're specifically assigned as the ticket approver field. I think that'll work. 

 

I'll try that. Thank you! 

John Funk
Community Champion
April 29, 2020

Great! If works for you can you click on the Accept answer button above to close this one out? Thanks!

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