Hi,
i'm trying to put a script with script-runner to make a validator in a transition and it's look like:
import com.atlassian.jira.component.ComponentAccessor
def groupManager = ComponentAccessor.getGroupManager()
(
groupManager.isUserInGroup(issue.reporter?.name, 'group1') ||
groupManager.isUserInGroup(issue.reporter?.name, 'group2') ||
groupManager.isUserInGroup(issue.reporter?.name, 'group3')
)
I want to all the users in those groups to be able to create an issue using a specific issue type and if it's not true an error message must be shown.
Thanks in adavance.