Hello
I am looking for ability to restrict creation of specific issue type for specific users/groups/project.
I found that the easiest solution is a Script runner validator in workflow "create transition"
So I need the condigition:
if
issueType="IssueType" && user who is creating this issue is member Of Role("Project Role") && project is "PROJECTKEY"
returns true, then issue could not be created.
1) issue type condition is
issue.issueTypeObject.name == 'Bug'
2)project role condition is
isUserMemberOfRole('Administrators')
3) I am not able to find condition for project. I tried
issue.getProjectObject().key == "ABCD-123", but it doesn't work.
Is there a possibility to find a project key? I need to merge these three conditions.
Thank you in advance,
Fyodor