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
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.
Hi Mark ,
Please Try this below Expression
!( project.roles["XRAY Tester"].includes(user) && !["Bug", "XRAY Test", "Test Execution"].includes(issue.issueType.name) )
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.