Forums

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

Lock fields after adding data

Francisco Navarro
Contributor
August 13, 2025

Hello community,

I'm struggling with an automation and I hope you can help. I have 3 date fields and 3 text fields. What I'm trying to do is prevent them from editing the value after entering data.

Currently, I've only managed to keep the data and return it to the original value if they enter something. Then I set up conditions based on "IF" and "ELSE" to go through all the fields, but now it doesn't do anything :(

I've attached images of the rule so you can better explain what I built and help guide me toward a solution.error automation3.pngerror automation2.pngerror automation1.png

3 answers

0 votes
Darryl Lee
Community Champion
August 13, 2025

Using Automation to revert fields that users are "not supposed to touch" is a pretty horrible user experience.

User: "What? Why did it change my field back? What is happening!?"

A better solution is to prevent editing of fields during particular statuses.

The way to do this is with Workflow Properties, a slightly arcane Jira Admin topic. Here's the official documentation:

And a great tutorial on it from @Bogdan Gorka:

And lastly, the great grand-daddy of resources from @Jobin Kuruvilla [Adaptavist]:

The property you would want to set for Statuses where fields should not be edited is:

  • jira.issue.editable = False
Francisco Navarro
Contributor
August 14, 2025

Thanks!

I'll check out the instructions you shared with me.

0 votes
Francisco Navarro
Contributor
August 13, 2025

Hello Marc, 

 

What I managed to do was "revert" the value of the modified field to the original. While this doesn't comply with the concept of "locking" as such, it helps users know after the announcement that after entering a piece of data once, they won't be able to change it again.

 

The problem started when I added more fields because it recorded the first changed field and then copied that original value to another field that had been modified, from the list of fields we specified.

What I managed to do was "revert" the value of the modified field to the original. While this doesn't comply with the concept of "locking" as such, it helps users know after the announcement that after entering a piece of data once, they won't be able to change it again.

The problem started when I added more fields because it recorded the first changed field and then copied that original value to another field that had been modified, from the list of fields we specified.

 

 

Marc - Devoteam
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.
August 13, 2025

Hi @Francisco Navarro 

That's why i provided this solution.

Use read-only text field to copy the initial value to and remove the fields from the screens, so that they can't be seen and/or edited.

0 votes
Marc - Devoteam
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.
August 13, 2025

Hi @Francisco Navarro 

You can't lock fields.

What you can do is of these fields are filled in on creation, create referenced custom fields of type read only.

Then in automation based on issue creation copy the values of these fields to the custom fields and show these fields on the edit/view screens and not the initial fields.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events