Hi,everyone!
Please tell me how can I make the script work? Condition: if the current user is a member of one of the groups, then true, otherwise false. I'm new to groove and my skipp doesn't work yet
import com.atlassian.jira.component.ComponentAccessor
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def groupManager = ComponentAccessor.getGroupManager()
def groupName = ["adm", "jira-administrators"]
if(groupManager.getGroupNamesForUser(currentUser).containsAll(groupName.any()) ){
true
}
else {
false
}