Forums

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

How to make some fields in Read only mode for particular status

Prathap DL
Contributor
May 6, 2025

Hi All,

Is it possible to make custom fields as read only when ticket moved to Done state.

We tried below property key and it will make entire jira ticket is in Read only mode.

"jira.issue.editable = false"

We don't want to make entire ticket in read only format, Only particular fields should be in read only format.

Environment: Jira Cloud

2 answers

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
May 6, 2025

Hi @Prathap DL 

You can have a workaround making specific fields read-only in certain statuses, but in this way you'll lose the inline editing function.

Steps to the workaround

- Remove fields from the regular Edit screen, all those fields will be readonly

- Create a special Edit transition (self-loop),

- Add a condition to this transition so that only in certain status(es) this button will be seen

- Add a transition screen to this transition in which you add those specific fields that you want to be editable.

This way in Done status the users will not be able to edit issues, also they will not see the Edit transition button.

0 votes
Kristian Walker _Adaptavist_
Community Champion
May 6, 2025

Hi Prathap,

I can confirm that if you have the ScriptRunner for Jira Cloud plugin, the Behaviours feature can help to achieve this requirement.

You will then be able to create a behaviour to run on the Issue View that fetches the current issue and checks if it is an a certain status and then makes fields read only using the setReadOnly() function.

We have an example of how to access fields from an issue here that you can use as a guide to see how you would get the status field of an issue.

Finally, you can see what field types you can set making read only in the issue view in the documentaton page located here. 

I hope this information helps.

Regards,

Kristian

Prathap DL
Contributor
May 6, 2025

Thanks @Kristian Walker _Adaptavist_ 

Yes, we have Script runner for jira cloud. As i'm new to script could you please provide the exact script which will be used in behavior. 

Thanks

Kristian Walker _Adaptavist_
Community Champion
May 6, 2025

Hi Prathap,

I do not have an exact script to help with this requirement and would ask you to raise a support request here if you need assistance with creating the script to solve your requirement.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events