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 showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

237 views 1 2
Join discussion

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