I have two fields ‘Enabler Type’(User picker) field and ‘Create Default sub task?’(Radio button) field.
If ‘Enabler Type’ is filled then ‘Create Default sub task?’ field value should set to ‘Yes’ and should be able to edit the value as well. If Enabler Type field is not filled then ‘Create Default sub task?’ should set to ‘No’ and allow us to edit as well.
I have written a script to achieve this but Its getting set to the values but its not allowing us to edit the value. Could you please help me with the code which help me to set the value as well as allow the user to edit it.
def enablerfield = getFieldByName("Enabler Type") def defaultask = getFieldByName("Create default sub-tasks?") if(enablerfield.getFormValue()==null) { defaultask.setFormValue('No')&&defaultask.allowInlineEdit==true } else if(enablerfield.getFormValue()!=null) { defaultask.setFormValue('Yes')&&defaultask.allowInlineEdit==true }