Script for editing custom field value only by desired groups

PRIYA MHETRE
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 9, 2019

Hi ,

My requirement is I have created  RequestType field ( single select list ) in jira and I want that RequestType should be editable only by Admin and Developer Group.

 

Other requirement is for creation of issue i want to restrict it with desired groups users , following is the script which I m using it works for 1 group but my requirement is  user (reporter ) should be present in either  A, B,C group 

import com.atlassian.jira.component.ComponentAccessor
def groupManager = ComponentAccessor.getGroupManager()
groupManager.isUserInGroup(issue.reporter?.name, 'A')

 

And instead of group if I want to use custom field ( User picker ) that is user present in desired fields should be able to create issue , what will be my script

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events