We have a use case where as soon as a jira issue is assigned to a particular user, a custom field (could be regular text field or group picker field), is populated by the name of group the assignee belongs to. In this case any of the users who will be assigned to these issues will always only belong to two groups. One would ofcourse be the default jira-software-users group for login and the other group would be some xyz group and we would like that xyz group to be populated for that user under that custom field. So lets say when assignee is user1 and belongs to groups jira-software-users group and group1 then the custom field is automatically populated with group1 name. If its user2 with same jira-software-users group but this time group2, then that custom field is populated with group2 and so on and so forth.
Is anyone aware of how this could be accomplished. I feel script runner plugin could come handy, but i am a novice in that area, hence any help or suggestions will be greatly appreciated as always.
Cheers,
Ashley