Since upgrading to JIRA 7 my script on Scriptrunner to update a check box is no longer working.
The script finds the checkbox with it's existing values and adds a new value.
def checkbox_cf = customFieldManager.getCustomFieldObjects(parent).find {it.name == 'BI Deployed to Environment'}
def new_value = ComponentAccessor.optionsManager.getOptions(fieldConfig)?.find { it.toString() == 'UAT' }
def current_options = parent.getCustomFieldValue(checkbox_cf);
checkbox_cf.updateValue(null,parent,new
ModifiedValue(parent.getCustomFieldValue(checkbox_cf),
current_options + [new_value]),changeHolder);
The error is occurring on
current_options + [uat_value]
Can anyone help?