For a script to run I evaluate a complex condition for
1. a status equals 'Escalated'
2. a single select 'Reviewer needed?' equals 'Yes'
3. a single select 'Service Type' equals 'Email'
4. an Assignee is Empty - (I have not tried this so far, could use help tho)
I tried
cfValues['Reviewer needed?'].value == 'Yes'
cfValues['Reviewer needed?'].getValue() == 'Yes'
cfValues['Reviewer needed?'].getValue().contains('Yes')
with dozens of combinations of single and double quotes
And it fails with
2020-06-13 10:30:30.802 ERROR - The condition: issue.status.name == "Escalated" && cfValues['Reviewer needed?']?.getValue() == "Yes" && cfValues['Service Type']?.getValue().Contains('Email') evaluated to: ["Jira expression failed to parse: line 1, column 66:\n!, -, typeof, (, IDENTIFIER, null, true, false, NUMBER, STRING, new, [ or { expected, . encountered."]I read thru many posts and documentation including this
https://jamieechlin.atlassian.net/wiki/spaces/GRV/pages/33030148/Built-In+Scripts#Built-InScripts-PowerAssertions
PS After moving evaluations to listener script body I got
No such property: cfValues for class: Script1 on line 5