i have post function in my workflow to clone issue and links on perticular transition.
below code works if custom field is not group picker single value:
def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'summary updated'}
issue.setCustomFieldValue(cf, 'hello')
when i try to updated single value group picker custom field it does not work:
def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Assignment Group'}
issue.setCustomFieldValue(cf, UserManager.getGroup('my_group1'))
i tried below options:
issue.setCustomFieldValue(cf, GroupUtil.getGroup('my_group1'))
issue.setCustomFieldValue(cf, UserUtil.getGroup('my_group1'))