We are using a ScriptRunner Behaviour to ensure there is a default value in a single choice select list. We are using this method as the form has a lot of other validation on it and this particular select field is also only displayed based on another field value.
We have tried both examples below but neither work, any suggestions?
def textField5 = getFieldById("customfield_17221")
def selectListValue = selectList.getValue()
if (selectListValue == "Partner") {
getFieldById("customfield_17221").setFormValue("ITL3")
textField5.setFormValue("ITL3")
}