Forums

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

Can I limit edit access on a custom field by user role type? Where everyone else may have view only

DeAnna Law October 21, 2021

I have built in a few custom fields at the story ticket level to be able to capture certain metrics.   These fields need to be editable by a single user role only but viewable to everyone else.  Is there a way to lock down custom fields to be able to do that but still allow the flexibility for the admin/edit access user to work from a normal ticket view to edit.   Both fields are checkbox type fields. 

2 answers

2 accepted

3 votes
Answer accepted
Ravi Sagar _Sparxsys_
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 21, 2021

Hi @DeAnna Law 

This is a very common question that people ask, field level permission is not a feature in Jira natively. What you can do however is use the workflow instead.

  • You can create a transition in your workflow
  • Show a transition screen with the field you want to capture from specific role
  • Use workflow condition to make sure user of a specific role can make that transition
  • Don't add those fields on edit screens

I hope it helps.

Ravi

DeAnna Law October 21, 2021

Thank you Ravi, maybe in the future there is a feature request in JIRA's backlog to allow this.   I know that backlog is long but a girl can hope. 

Ravi Sagar _Sparxsys_
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 21, 2021

Oh yes there is already a feature request for it but I am not sure if Atlassian will do it.

1 vote
Answer accepted
Alex
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 21, 2021

Hi @DeAnna Law 

 

I managed to do something similar for a client by with a few workflow and screens trick:

  • Step 1: Creating a screen with all the fields that are "restricted":

 

  • Step 2: Creating a transition from Any Status to Itself and assigning the transition screen created on Step 1

Screen Shot 2021-10-21 at 12.21.13 PM.png

 

Step 3: Create a Workflow Condition to allow the transition only to specific users

Screen Shot 2021-10-21 at 12.25.31 PM.png

Step 4 and final: Remove the fields from the Edit and Create screen from the Screen Scheme of the project.

I hope it helps. If this answer helps solve the problem, please come back and mark this answer as solved to help other community members with the same challenge. If not, you are welcome to share your solution as well.

Cheers,

Alex

DeAnna Law October 21, 2021

Thank you this is useful! 

Like Alex likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events