Forums

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

Giving rights to modify a field context/values to project administrators

Va man July 18, 2023

Hello everyone,

 

I did not found an answer to my question online, so I'm here to ask you

 

I have a project named "HelloWorld" with a customfield (with is a cascading select list if it matters) named "Product & Version"

 

This field only have 1 context/configuration scheme which is for this project HelloWorld. 

As it should have every product and version for each one, it will be time consuming for Jira admins to maintain this field, adding new values regularly. 

The user JohnDoe which has the role Administrator for this project but is a standard user without access to administrator rights on Jira wants to be able to modify this field values, so us admins don't have to do this.

I searched in the project options, but I found nowhere to modify the customfield value from the project administrator perspective.

Is there a way for him to update the field context ? 

If not, is there a good way to allow him to do this without giving him full jira admin rights ? (Maybe there is a way to give admins rights only for some customfields ?)

 

Regards, 

 

2 answers

1 accepted

0 votes
Answer accepted
Craig Nodwell
Community Champion
July 18, 2023

Hi @Va man out of the box jira no as mentioned you have to be a jira admin to add/modify/delete custom fields or the values in a select list.  You could probably come with an automation through scripting to do what you need.  Do you have any plugins available, like scriptrunner?

Va man July 19, 2023

Hello, 

I have Automations for Jira and Scriptrunner installed yes. But I did not thought about using them for this case, how would you do it ? 

Craig Nodwell
Community Champion
July 19, 2023

I'd create a fragment for the users based on role with permission who you want to be able to populate the new values, trigger a pop up input screen with a custom field, grab the updated value from that custom field and update the select list.  That would be my approach. Hopefully that will get you started at least on discovery.  

Have a look at this post it shows using a custom field to populate a new value into a select list.
update-select-list-options 

Craig Nodwell
Community Champion
July 19, 2023

you could also follow that example closer and put a validator on the custom field based on user role for the create transition or a looping transition with a condition on the user role and the value being null or something along those lines.

Va man July 21, 2023

Hello, thanks for this answer, i'll give it a try then ! 

1 vote
Tim Perrault
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.
July 18, 2023

Hi @Va man 

 

To add/modify/delete custom fields you will need to be a Jira admin.

Suggest an answer

Log in or Sign up to answer