I have this statement in a ScriptRunner validator for a workflow:
issue.customfield_11687.value != null && issue.customfield_11687.value=="Yes"
The problem is that if the value is null, it returns with an error:
Evaluation failed: "issue.customfield_11687.value" - Unrecognized property of `issue.customfield_11687`: "value" ('value'). Type null does not have any properties
Is there a way that I can check for a null value, and then if not null, check the actual value?