We've configured a specific custom field to be readonly in Scriptrunner's Behavior plugin.
We started noticing that for some issues, the value for the readonly field is being deleted. The issue history shows this action as a regular field edit operation (ie. it wasn't a Move or something else)
We discovered that the readonly custom field in question is being blanked out, whenever a user goes into Edit Issue mode and then clicks on Configure Fields to change the default field selection. If the user customizes the fields, and adds the readonly custom field to his field selection, this field is blanked out but stays un-editable.
And when the user commits his other unrelated changes, the value of the readonly field is then lost.
We're running JIRA 6.4.12 and the latest Scriptrunner version 4.1.3.16
Any ideas why this is happening ?
This is the XML for the field configured in Behaviour:
<config use-validator-plugin="false" name="ExternalissueIDReadOnly" description="Make External IssueID readonly" guideWorkflow="null">
<field id="customfield_11904" required="null" readonly="true" hidden="null"/>
</config>