Using the Adaptavist ScriptRunner for Jira Plugin, I want to test 2 conditions to allow an email to be sent. Both conditions rely on checking values of custom fields.
Specifically, the one line I have in my Condition section is:
(cfValues['Reported by'] != null) && (cfValues["Customer"] != "xyz")
I know the fields are populated correctly because when I run the Preview mechanism to see what my email looks like, the validation step that tests the Condition is returning true or false correctly based on different issues I throw at it.
However, I've already seen where an issue that tested with a false condition was still sent out. My concern is that warning in the Preview mode that states ".......note that for listeners the condition can't normally be tested".
What does 'normally' mean in this context? Is there any way to have the Condition function as expected here?
Thanks!