Forums

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

Automatically Set Approvers based on Requestor's Property using Scriptrunner

Alvin
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 Champions.
September 2, 2018

Hello , I am new to JIRA, can someone help me with my problem

I want to create a simple post function on JIRA Service Desk that automatically sets the Approvers Field based on the requestor's manager. 

(i.e. if Requestor 1 creates a ticket, then the post function will read the property of requestor 1 and then finds the Manager and automatically set it to Approvers Field)

Any comments/suggestions are really appreciated. If you can also provide a sample post-function code for this one, that would be great. 

Thanks!

3 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Leo
Community Champion
July 21, 2020

Hi @Matt Shigekawa,

Refer THIS post, in which I provided sample script along with group manager class

hope would help you

 

BR,

Leo 

0 votes
sujata birajdar
September 23, 2021

 

 

How we can achieve this in JIRA cloud where behaviours are not part of scriptrunner.

0 votes
PD Sheehan
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 Champions.
July 20, 2020

You are looking for setFieldOptions() method of scriptrunner behavior

There are several articles showing how to do that in the community

TAGS
AUG Leaders

Atlassian Community Events