Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Validator on Assignee's group

Gaetano Turturro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 23, 2025

Hi there,
with a ScriptRunner validator on the issue creation workflow transition, I’m trying to verify that the assignee belongs to a specific group (not to a role).
I had no problems when testing it by assigning a task to myself (as administrator).
However, when I made this validator operational, an error came up because the property of belonging (or not belonging) to the group is not visible.
Any ideas on how to resolve this?
Using a project role is an option, but I would prefer to use groups.
Gaetano

2 answers

1 vote
Kristian Walker _Adaptavist_
Community Champion
September 23, 2025

Hi Gaetona,

Validators inside of ScriptRunner for Jira expression framework. 

It sounds as if the group is not correctly configured for users, which is causing the validator to fail.

I would advise you to raise this as a support request here, so that the ScriptRunner support team can help debug the validator and identify the potential issue with the group. 

I hope this helps.

Regards,

Kristian 

0 votes
Maciej Dudziak _Forgappify_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2025

Hi @Gaetano Turturro

The thing is, when you try to read user project roles or groups in a Jira expression, you need Project Administrator or Global Administrator permissions, respectively. Since the validator runs as the current user during a transition, and that user might not have those permissions, it won’t work in that case.

Cheers

 

Gaetano Turturro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 23, 2025

"Broswe Groups and Users" global permission could be enough?

 

Maciej Dudziak _Forgappify_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2025

This is what official docs says:

  •  groups: The list of names for all the groups the user belongs to. Note that, while you can access your groups, you need Administer Jira global permission to see groups other users belong to (List<String>).
  • N groupIds: The list of IDs of all the groups the user belongs to. Note that, while you can access your groups, you need Administer Jira global permission to see groups other users belong to (List<String>).
  • N getProjectRoles(project): Returns a list of project roles the user belongs to for a Project. Note that, while you can see the roles you belong to, you need Administer Projects project permission for the project or Administer Jira global permission to see roles of other users (List<ProjectRole>).
Gaetano Turturro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 23, 2025

Screenshot 2025-09-23 130245.pngSo, a new question:
If I fire a post function that checks whether the assignee belongs to a group before the issue is created, can I stop the transition (and therefore the creation of the issue), or would I have to delete it afterwards?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events