Hello,
I am trying to write a script that will check if TBC is selected in a multilist selection on JIRA custom field but will let all other fields including None (Default value) Through.
This script allows all values except TBC and None through
def val = cfValues['Testing required Up/Downstream']*.value
if (val.contains("TBC")) {
return false;
} else {
return true;
}
I have tried this script to allow None through but it stops all values
def val = cfValues['Testing required Up/Downstream']*.value
if (val.contains("TBC")) {
return false;
} else if (val == null) {
return true;
} else {
return true;
}
Thanks in advanced for your help.