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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need a plugin. The scripts, which I provided, can be run by ScriptRunner. You can also use Power Scripts add-on. But there will be a different script. The script will be easier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.