Hi all
I am using ScriptRunner to write a Behaviours and need to determine whether the field value is empty and set the field to read-only. My custom field is text, but I have tried several ways but cannot determine. Could you please tell me the correct code:
def Field = getFieldById(getFieldChanged())
def value = Field.getValue()
if ( value != null ){
Field.setReadOnly(true)
}