Validate Reporter is a member of Team (not Group) on Create Issue

C Jay February 25, 2025

Hi,

I’m trying to set a validator that checks If the reporter is a member of either Team A or Team B when an issue is created. This is an Advanced Roadmap Team and not a user group or role. 

I have the JMWE add on and do not have Scriptrunner. 

I’ve tried the following but it’s not working: 

Validator type:  User Validator

Condition for user(s) groovy expression:

issue.get(“customfield_XXXX”)?.id == XX || issue.get(“customfield_XXXX”)?.id == XX

I have set an error message which I receive when I try to create an issue even though I’m a member of the Teams

Is this even possible?

It does have another conditional validation in the same validator which checks the issue type and this part is working. 

Please help! 

1 answer

0 votes
Pasam Venkateshwarrao
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.
February 25, 2025

Hi @C Jay 

 

Yes this can be done using validators between the workflow transition on "open" status

you can use user validator(JMWE)

Screenshot 2025-02-25 at 6.17.10 PM.png

 

Hope this helps

C Jay February 25, 2025

Thanks, that is what I am using but there is not option to choose “Team” and set the values, hence trying to use a groovy expression. 

Pasam Venkateshwarrao
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.
February 25, 2025

@C Jay by default team field is there in jira you can create team and you can add the field as team

C Jay February 25, 2025

Yes, I'm aware the Team field is there by default, what I can't do is check the reporter is a member of a specific team.  I want to restrict by Team(s) who can create issues of a particular issue type.

 

C Jay February 25, 2025

2025-02-25_13-10-35.jpg2025-02-25_13-11-31.jpg

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.12.16
TAGS
AUG Leaders

Atlassian Community Events