Forums

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

How to add a role to a specific project only?

Frank Schophuizen
Contributor
August 11, 2015

How to add a role to a specific project only, without it appearing in other projects?

 

For Issue Security Levels I need a role to identify which users in the project have access to the issues with the Issue Security Level. This role is only relevant for projects having an Issue Security Level Scheme attached.

When adding a role (Admin > System > Roles > Add project role), the role is added to all projects in the JIRA database. For projects without an Issue Security Level Scheme, the role is irrelevant and confusing. How can I have the role appear only in some specific projects (under Project > Administration > Roles).

3 answers

1 vote
Joe Pitt
Community Champion
August 11, 2015

Roles are universal. However they don't need to have a user assigned in every project

Frank Schophuizen
Contributor
August 11, 2015

Thanks, I figured that one out. However, by "View usage" Jira knows exactly which schemes use the role and which projects are associated with those schemes. So what is the added value of showing the role in other projects too? (The same applies for roles which are specific to a particular Permission scheme)

0 votes
MattS
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.
August 11, 2015

Try using a user picker custom field instead of a role. Don't put it on edit screens. Set it in a post function

Frank Schophuizen
Contributor
August 12, 2015

When using the user picker, adding or removing users cannot be done by the project admin; it requires Jira Administrators permission to change the Issue Security Level settings. Is there any other way than roles to allow the project admin to add/remove users to a Security Level without Jira Administrators permission, that you know of?

0 votes
Joe Pitt
Community Champion
August 11, 2015

If they aren't displayed and available you'd need another screen to configure which project they appear in. Then if a project decides to start using one they'd have to contact the admin to have it turned on. It is an implementation decision. If you don't like it put in a request they change it.

Frank Schophuizen
Contributor
August 12, 2015

I don't think so. Since a role is associated with a scheme (e.g. Permission scheme, Issue Security scheme) and schemes are associated with project, Jira knows exactly which projects should see the role and which ones should not. And by adding a "Global role" checkbox to a role definition, you could easily indicate that a role must be listed in all projects, regardless of the schemes it is used in.

Joe Pitt
Community Champion
August 12, 2015

It is still an implementation decision and you need to put in a change request or modify the source code yourself.

Suggest an answer

Log in or Sign up to answer