The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events