Um, your question says "make text field read-only in edit screen" then "the user can change this field in edit screen" - which one is it?
Or do you mean you just want to be able to stop all edits of the field after creation? (To do that, remove it from the edit screen)
Ah, ok. You have a problem then - the standard way to tell Jira a field cannot be edited in "view" is to remove it from the edit screen. The "inline edit" is a friendly way of making Jira quicker and easier for your users - changing a field becomes three clicks instead of 6.
If you want to disable inline edit while keeping the ability to change a field then consider these:
No. If you put a custom field on a transition screen, it is there to be edited by the user, not read-only. Behaviours can change that, but Cloud does not support the type of code Behaviours needs to inject to do this (yet), so there are no behaviours for Cloud.
@Nic Brough - thank you for your involvement in the Community. With Jira 7.9.2 and Scriptrunner 5.6.9, I can't seem to disable inline editing on view screen, for a custom date picker field, using the simple 2 lines above with an initializer. It remains editable on view screen in the Dates section. Would you expect this to work for a date picker?
If they can edit the field then it isn't defined as read only. If you are setting it in the background remove it from the edit and view screens. If you don't have separate create, edit, and view screens you need to create them instead of just using the default screen for all functions.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event