I've done this before with the behavior set based on a single custom field value, but for some reason this isn't working for the combination of field values.
The scenario is that we have an Impact field and an Urgency field. If the highest value in both fields is selected, I want text to display to verify if they are sure about that selection.
Here's what I've tried:
def cf1 = getFieldByName('Impact')
def cf2 = getFieldByName("Urgency")
def cf1Value = cf1.getValue() as String
def cf2Value = cf2.getValue() as String
if(cf1Value == "Critical" && cf2Value == "High"){
cf2.setDescription("warning text")
}
if(cf1Value !="Critical Business/Ops Impact"){
cf2.setDescription("normal description")
}I've tried adding this to both fields and the behavior does not work on either.
Any suggestions are greatly appreciated!