...
The first and simple way of doing it, and portable across Jira versions, is by using the lfDisable routine from the Live Fields feature of our Power Scripts™ for Jira app.
Option 1
Create a SIL file called "Main Script" with the following code:
Code Block title MainScript.sil lfDisable("customfield_xxxxx");
where customfield_xxxxx is the the ID of your database child custom field. You can see the custom field ID as a parameter in the URL when editing its configuration.
For example, .../secure/admin/EditCustomField!default.jspa?id=10701.
- Create a Live Field Configuration using the above Main Script and associate it to a project, let's call it ProjX.
- Every time we enter the issue page of the ProjX project, the MainScript.sil is executed and the customfield_xxxxx will be read-only.
...