Hi,Custom group picker field name is active users. the following script works pretty good while creating issue. Main/Parent issue picks project admin and subtask based workflow picks jira-users group automatically according to the script.
//Get Issue Object
Issue issue = issue //The issue object is internally retrieved in the post-function
//Get instance of Custom Field Manager
def customFieldManager = ComponentAccessor.getComponent(CustomFieldManager)
//Initialize variables to setup group picker & automation type custom field value
def groupManager = ComponentAccessor.getGroupManager()
def singleGroupCf = customFieldManager.getCustomFieldObject("customfield_11119")
def group = groupManager.getGroup("Project Admins")// for subtasks based workflow i use her jira-users//
List groupList = new ArrayList()
IssueChangeHolder changeHolder = new DefaultIssueChangeHolder();
singleGroupCf.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(singleGroupCf), groupList), changeHolder)
But its not working while converting issue into subtask. I mean the custom group picker field is not picking jira-users group automatically.if anyone,can give a solution for me ,it would be helpful
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Atlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs