Forums

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

Cloud Jira script validator to restrict issue creation to particular group

k.vijaya.lakshmi January 3, 2024

I have added below script to check if the user is present in the specific group in create transition

Jira workflow validator - user.groups.includes('RMD')

I have to check if the user is present in group RMD or site-admins

if the user is present in any one of the group then the user can create issues.

 

1 answer

0 votes
Craig Nodwell
Community Champion
January 3, 2024

Hi @k.vijaya.lakshmi could you please be a bit more clear on your ask.  What exactly are you looking for?

k.vijaya.lakshmi January 3, 2024

user.groups.includes('RMD','site-admins')

I tried the above code to check if the user is present in any of the group but it failed.

eventhough i am a 'site-admin' i can't create issues under the project because the above code checks if the logged in user is present in both the groups.

The code i tried below

user.groups.includes('RMD') || user.groups.includes('site-admins')

Suggest an answer

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

Atlassian Community Events