We have a workflow where we use a screen to change the assignee before a specific step. We want only assignees from a specific usergroup to be valid, otherwise JIRA should throw a message.
We tried scriptrunner, but it is not working. We integrated the following script as a validator using script runner:
import com.atlassian.jira.component.ComponentAccessor
def groupManager = ComponentAccessor.getGroupManager()
groupManager.isUserInGroup(issue.assignee?.name, 'group-name')
JIRA is the latest version.
Any other ideas?
Thx
Simon