It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Script for editing custom field value only by desired groups

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you