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