I'm using a ScriptRunner Workflow Validator to confirm that two fields are not both null.
I'm using the following:
issue.customfield_10178.value != null || issue.customfield_10284 != null
If I evaluate either side of the expression, I get the result I expect, however when using the "or" I get the following error:
Evaluation failed: "issue.customfield_10178.value" - Unrecognized property of `issue.customfield_10178`: "value" ('value'). Type null does not have any properties
Is there a better way to evaluate that my two fields aren't both null? Both fields are single pickers.