How to prevent create issue to a project role

Adolfo Casari
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2012

Is it possible to disable to create an issue type to a project role?

Thank you.

2 answers

1 accepted

0 votes
Answer accepted
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2012

Get the Script Runner plugin from marketplace and add a validator that check the project role in the create issue transition.

https://studio.plugins.atlassian.com/wiki/display/GRV/Validators

0 votes
Florin Manaila
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2012

I don't think it's possible to negate the permission (Project Role x does NOT have Create Issue permission), so I only see two options here:

1. Grant Create Issue to other roles except the one you want. However, this does not work if the user has two or more roles in the project (BTW, you did not mention a resolution for this case). Note that this will hide the Create Issue button.

2. Use a third-party plugin to add a validator to the Create Issue transition in your workflow(s). The validator should fail if the user has the specified project role. Note that this will not hide the Create Issue button, but instead will always show an error when the user submits the create issue form.

Suggest an answer

Log in or Sign up to answer