I have a Developer Notes custom field and would like to restrict its visibility to admin users only. Is that possible?
Thanks!
Tom
No, that is not possible out-of-the-box, the closest you can get is to hide the field and only have it available on a screen that is shown for a circular transition that only certain users can access. There are apps in the Marketplace that allows you to set field restrictions.
Yes, a circular transition is the out of the box way of doing this.
Note: the button to perform the transition will appear under the action/ automation icon and not under the button that is normally used to change a status. This has been reported in JRACLOUD-94299
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tom Horton
Another option where you have full control using scripting is with ScriptGenie (full disclosure: I am the developer).
You can:
- Use your current custom field and use UI Modifications to enable/disable the field.
- Create a custom "ScriptGenie" field and enable/disable the field.
- Create your own UI (entry form) with full control.
- ...
Happy to help you out with the scripting if you need help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would go with the option mentioned by @Ben Friedman _Ben_viter_io_ : a separate issue. It could be a linked issue of a specific type though my preference would be a subtask of a specific type. This subtask would hold the field Developer Notes and you would use Issue Security to ensure that only Admins can view these subtasks. This would enable Admins viewing the main issue to click into the subtask to view the Developer Notes. But reporting and csv export etc would be more complex.
The title of this question is "Is there a way to restrict access to a custom field in a Jira ticket?" so I'm adding a few words for people who might land here wanting to know how to restrict who can edit a custom field. For this scenario you would remove that field from the Edit screen and add it to a transition screen of a transition that is restricted to the group/role that you want to be able to edit it. Note though that the field, when filled, is still visible to everyone who can view the ticket (either on its face, in the history tab, in list/search, in csv export etc).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tom Horton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tom Horton ,
in short, Jira doesnt support field security restrictions.
marketplace apps provide some options here, but the downside is that these fields are (i havent done a check on these types of apps in the last 6 months) not fully available in other interfaces of jira (reporting, autoamtions...) and they remain solely in the ticket. another downside, generic for marketplace apps, is the price, that is calculated on the number of licensed jira/jsm user that you have.
To note, even with limiting the field to the transition screen, it doesnt block the view access. Checking the ticket from a list view in jira, or API for example, would still render the information. on the ticket itself,restrcited user will not see the data, but also admins, since in this configuration the field is only on the trasntion screen and not the view/edit screen.
Another option is to consider a forge app that is specific to your site. this means you can keep using the jira fields as they are, enforce edit/view the logic so the field remains on the main (not transition) screen, not pay the marketplace price (maybe even not pay monthly at all), and you can extend the logic in ways that are tailored to you in the future. it still doesnt resolve the access by additional interfaces (jql, list view, api...). i have actually done that kind of implementation to a customer before, let me know if you need assistance
A more complex option is to consider combining a specific issue type for that data point that is linked to the main ticket (can be stiched with automation) where that issue type will be restrcited for view only for admins. Then only admins see that data point, always.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.