Hi, Guys.
I have a problem with script runner. could you help me?
I use cascading field and I know how to check validation via script runner, Like this 'cfValues["Complaint type"]?.keySet()?.size() == 2'
but I just wanna add one more condition with some of issue type.
for example, issuetype name is 'complaint' . I just fill out scriprunner as below, but I have failed.
(1) issue.issueType.name == 'Complaint' || cfValues["Complaint type"]?.keySet()?.size() == 2
(2) if (issue.issueType.name == 'Complaint') {
cfValues["Complaint type"]?.keySet()?.size() == 2}
where is my pain point?
Best regards,
Nate