Hi, I'm trying to set up a validation in a workflow that requires the URL field [RCA] to be filled when closing a ticket, but only when the radio button field [RCA requested] has the value "Yes".
Can someone tell me what I'm doing wrong here? Instead of only requiring [RCA] under that condition the field is always required, even if it has a value. Alternately should I use the JWT logical validator?
Thanks!
import com.atlassian.jira.issue.customfields.option.Option
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def cf = customFieldManager.getCustomFieldObjectByName("RCA requested")
cfValues['RCA requested']?.value != 'Yes' || cfValues['RCA']