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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.