Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,371
Community Members
 
Community Events
165
Community Groups

ScriptRunner - How to restrict issue type creation by Groups

We have an issue type called "Severity" which is for Sev1 alarms that needs to be escalated instantly, I'm trying to restrict creation of items with this type by user group (Named Group X) 
I found a solution ( https://community.atlassian.com/t5/Jira-questions/ScriptRunner-How-To-Restrict-Issue-Type-Creation-By-Groups/qaq-p/1804874#U2039374 )

but it is targeted towards JIra server/  Data center

 

Is there a solution for this issue?

1 answer

1 accepted

0 votes
Answer accepted

Hi @Arturs Kalnins

For your requirement, you could try to configure a Post-Function to change the Issue Type if the group is not the correct one.

Alternatively, you could use a validator that checks if the user belongs to a group and the issuetype = XXX and, if not, stop the transition and raise an Error message about it.

I hope this helps to answer your question. :)

Thank you and Kind regards,

Ram

Hey @Ram Kumar Aravindakshan _Adaptavist_ ! It looks like it might work as a solution, but since i'm just learning groovy, is there a code snippet or something i could use as an example?


Thank you so much! 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you