Skip to main content
Example scripts
arrow icon
To homepage
Jira
Data centre icon
Data Center

Validate the User Group of the Assignee

Features
Validators
Created 1 year ago, Updated 4 month(s) ago
App in script
ScriptRunner For Jira
ScriptRunner For Jira
by Adaptavist
Compatibility
compatibility bullet
Jira (8.0 - 8.14)
compatibility bullet
ScriptRunner For Jira (6.18.0)
Language |
groovy
import com.atlassian.jira.component.ComponentAccessor

// the name of the group you want to check
final String groupName = 'jira-developers'

issue.assignee ? ComponentAccessor.groupManager.isUserInGroup(issue.assignee, groupName) : false

Having an issue with this script?
Report it here