how to copy value from assignee value to group picker
You can not copy assignee value to a group picker, because assignee is of the ApplicationUser type and group picker is of the Group type.
any other way have to auto populate the user's group value to group picker
Do you want to populate a group of an assignee to a group picker? And what if an assignee belongs to multiple groups?
That is how you populate a group picker
import com.atlassian.jira.component.ComponentAccessor def customFieldManager = ComponentAccessor.getCustomFieldManager() def groupManager = ComponentAccessor.getGroupManager() def multiGroupCf = customFieldManager.getCustomFieldObjectByName("multigrouppicker") def singleGroupCf = customFieldManager.getCustomFieldObjectByName("GroupPicker") def group = groupManager.getGroup("jira-developers") issue.setCustomFieldValue(multiGroupCf, [group]) issue.setCustomFieldValue(singleGroupCf, [group])
And you can get a group of an assignee like this
def groups = ComponentAccessor.getGroupManager().getGroupNamesForUser(issue.getAssignee().getName())
how to run this script in jira because i am new to jira.
It looks like you're new here. Sign in or register to get started.