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