Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×They have a condition if the reported is in a specific group:
import com.atlassian.jira.component.ComponentAccessor
def groupManager = ComponentAccessor.getGroupManager()
groupManager.isUserInGroup(issue.reporter?.name, 'business-users')
But how can i change this so it's the assignee?
Use assignee instead of reporter...?
I chaned it to:
def groupManager = ComponentAccessor.getGroupManager()
groupManager.isUserInGroup(issue.assignee?.name, 'External Art')
Getting error:
javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: ComponentAccessor for class: Script52
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to import it:
import com.atlassian.jira.component.ComponentAccessor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why does this not work when adding && issue.projectObject.key ==
'ABCD'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.