Forums

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

I want to restrict few users from creating issues

Mark
May 21, 2026

In my project I want to restrict users with xray tested role to only create 3 issue types bug xray test and test execution 

Rest all the issues i don't want them to create apart from all the users who are there in the project can create all the issue types I have scriptrunner validator using a jira expression 

But when I tried to add a script it is stopping every user to create an issue can somebody help here 

) project.roles["XRAY Tester"].includes(user) && !["Bug", "XRAY Test", "Test Execution"].includes(issue.issueType.name)

 

This is what I used 

2 answers

0 votes
Marc -Devoteam-
Community Champion
May 22, 2026

Hi @Mark 

There is no option to restrict the creation of issue types based on space roles.

Permission on creating issues is based on the create permission within the permission scheme.

A user in a role can either create or not create issues in space, but you can't define which.

0 votes
NIHARIKA PANNALA
May 21, 2026

Hi Mark , 

Please Try this below Expression
!( project.roles["XRAY Tester"].includes(user) && !["Bug", "XRAY Test", "Test Execution"].includes(issue.issueType.name) )



Mark
May 21, 2026

Not working 

Suggest an answer

Log in or Sign up to answer