Hi,
I have a field called "Cust care team" of type Select list single choice.
I want it to appear only if on previous screen, a field called "Department and Team" of type select list cascading contains value "Customer care" (1st dropdown) or "Customer Care - Customer Service" (1st and 2nd dropdown)
I know a cascading select list returns an index, but I'm having trouble getting it to work.
Using JIRA Behaviours, as a serverside script.
I previously had this:
import com.atlassian.jira.component.ComponentAccessor
def dept = getFieldByName("Department and Team") //Multi Select Field
def custcare = getFieldByName("Cust Care Team")
def deptValue = dept.getValue(); //Getting Value of Multi Select Field
if(dept.toString().contains("Customer Care - Customer Service"))
{
custcare.setHidden(false)
}else{
custcare.setHidden(true)
}
I also tried an initialiser:
cfValues['Department and Team']?.values()*.value[0].contains("Customer")
Thank you