Remove either the label use-case-smart-text or use-case-smart-number depending on the feature the use case is based on

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

Feature

Field type

Smart text field

Parsing mode

General 

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

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.

Complexity