Hey there,
I'm working on a script that detects the field values and reacts accordingly, but I'm running into an issue where I can't accurately determine if a multi-list selection is equal to the default option, "None". The same is true even after selecting a different item, then clicking back to "None". I am able to get my code to react to the values selected otherwise.
The code is executing under the myVariable field. Any help is greatly appreciated - code below.
def myVariable = getFieldById("customfield_15201")
String myVariableValue = (String) myVariable.getValue()
// I've tried all of the following and none of these work.
if (myVariable.contains('None')) { ... }if (myVariable.contains(null)) { ... }if (myVariable.equals('')) { ... }if (myVariable.equal('None')) { ... }if (myVariable.equals(null)) { ... }
if (myVariable.isEmpty()) { ... }
if (myVariable.isBlank()) { ... }