jira scriptrunner user belongs to group

I have a user A, I need to figure out whether A belongs to GroupA or not.

1 answer

If you use scriptrunner then in the script console you can execute something like 

import com.atlassian.jira.component.ComponentAccessor

def groupA = ComponentAccessor.groupManager.getGroup("GroupA")

Suggest an answer

Log in or Register to answer