I'm running Scriptrunner with Jira Service Desk to create a application portal for a system called "PBS".
In my portal, I want to make a read-only select field called "System", and set the default value to "PBS" so I could use this field later in a database-picker.
However, when I try to get the value of this read-only field with the following code:
issue.getCustomFieldValue(ComponentAccessor.customFieldManager.getCustomFieldObjects(issue).findByName("System"))It always return null. If I comment out the line which makes the "System" field read-only, it works normally.
Could anyone please tell me if this is by design or a bug?