Making Custom Field Read Only?

Malte Heed December 5, 2012

In JIRA, is it possible to make a (unlimited text) custom field read only, except for (for example) administrators?

If so, how?

5 answers

1 accepted

2 votes
Answer accepted
Mizan
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.
December 5, 2012

Try behaviours plugin ... make the fields readonly and add a condition when user is administrator ....

refer the docs https://studio.plugins.atlassian.com/wiki/display/JBHV/JIRA+Behaviours+Plugin#JIRABehavioursPlugin-Makeafieldreadonlyexceptforacertainrole

1 vote
Bastien
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.
December 5, 2012

Hi,

Behaviours plugin is really the best way to do this. You'll have a lot of possibilty to customize your customfield behaviours.
https://marketplace.atlassian.com/plugins/com.onresolve.jira.plugin.Behaviours

Regards.

0 votes
David Skreiner
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.
September 7, 2016

This is possible to do without having to buy plugins, but it'd be a bit of a pain in the neck.

 

1. In the project, make sure the read-only field is only present on the View screen, not on the Edit screen.

2. In the workflow, create a new status (I'll call it ADMIN) and set it to be reachable from any status.

3. Click on the transition leading to your new ADMIN status, and set the Validator to "User has permission: Administer project".

4. Create a screen with your Custom Field on it, and tell the Transition to your ADMIN status to use that screen.

5. Create a transition from your ADMIN status back to the normal workflow.

 

You now have a transition which only project admins can use, and the custom field you asked about should only show up in the screen attached to that transition.

... it may be less hassle to just go ask for a budget to buy Behaviors, though laugh

0 votes
Raju Adluru July 8, 2013
0 votes
Malte Heed December 5, 2012

Thanks for the feedback, will try a plugin like recommended!

Suggest an answer

Log in or Sign up to answer