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.
Hi @k.vijaya.lakshmi could you please be a bit more clear on your ask. What exactly are you looking for?
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')
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.