Hi, I am trying to create a simple behaviour that gives an error when the user edits an issue and doesn't update the "Location" multi-select field away from "(Not yet set)" value. The problem with my code here is that when the user changes the value in the form to a valid option, it still gives me the error. It's not picking up the changed form value. Do you know how to fix this? Thanks.
def requiredField = getFieldByName("Location")
if ("(Not yet set)" in requiredField.value) {
requiredField.setError("Location is not yet set.")
}