Use case

Return "Yes" or "No" depending on the issue being resolved before or after its due date. "No" is returned if the issue has not been resolved by the due date.

Expression

Create and configure a Smart field using this expression in General parsing mode:

%{{issue.resolutionDate} != null AND {issue.dueDate} != null
? ({issue.resolutionDate} <= {issue.dueDate} ? "Yes" : "No")
: (datePart({system.currentDateTime}, RUN_AS_LOCAL) > {issue.dueDate} ? "No" : "")}

Used parser functions