Forums

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

Is it possible to lock or restrict fields from editting?

Madar_ Andrew
Contributor
May 30, 2024

In a story and subtask:  Is it possible to lock individual fields or restrict access to fields to a user or user group?

 

As an example, I attached a story with fields highlighted.

locking fields in story.JPG

 

  

2 answers

0 votes
John Funk
Community Champion
May 31, 2024

Hi Andrew 

One way would be to remove the field from the Edit screen. Then create a new screen. 

On the new screen just put in the fields you want to control the edit for. 

Edit your workflow and create a self looping transition on each status where the update is allowed. Add the screen to the new transition(s). 

Finally add Conditions to the transition to control who can execute the transitions. 

In effect, you are now controlling who can update the fields. 

0 votes
Trudy Claspill
Community Champion
May 30, 2024

Hello @Madar_ Andrew 

Jira does not provide such functionality natively.

It may be possible to implement with a third party app, such as the Behaviours app from Adaptavist. There are limitations to what that app can do, which would require knowing more details about your project.

https://marketplace.atlassian.com/apps/1228522/behaviours-scriptrunner-for-jira-cloud?hosting=cloud&tab=overview

Are you trying to block editing of the fields only in the Create Issue dialog or at all times?

Are you working with a Company Managed or Team Managed project?

Madar_ Andrew
Contributor
May 31, 2024

Hi Trudy, It's a Team Management project.  I was asked if I could lock fields in a story after it has been created.  I think I can only lock the entire story and all fields using the workload property option but that is not what they are asking for.

Trudy Claspill
Community Champion
June 3, 2024

In a Team Managed project it is not possible to block editing of individual fields.

 @John Funk 's suggestion could work if you were using a Company Managed project.

The app I suggested does not currently work for Team Managed projects.

Workflow properties can be used to limit permissions on some individual fields, but those tend to be built-in system fields, like Assignee, rather than custom fields that have been added to the project.

Like John Funk likes this
Madar_ Andrew
Contributor
June 4, 2024

Can I lock the story and provide access to only certain users for each transition step?

John Funk
Community Champion
June 5, 2024

What do you mean by lock the story?

 

Trudy Claspill
Community Champion
June 5, 2024

@Madar_ Andrew 

Do you mean block all editing of the issue, except through a workflow transition? 

If so, no. That would require showing a screen as part of the workflow transition, and Team Managed project workflows don't support that yet.

https://jira.atlassian.com/browse/JRACLOUD-83879

Like # people like this
Madar_ Andrew
Contributor
June 10, 2024

Thank you for your help.  I have another question and will open a new post.

Trudy Claspill
Community Champion
June 10, 2024

You're welcome, @Madar_ Andrew 

If we have adequately answered your question in this post, please consider clicking on the Accept Answer button to mark your post as Solved.

Suggest an answer

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

Atlassian Community Events