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 the duration between the current date and the due date of the current issue in days.

Expression

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

%{{issue.dueDate} != null ? max({issue.dueDate} - {system.currentDateTime}, 0) / DAY : null}

If the resulting number from the expression contains too many decimal numbers, feel free to select one of the available display formats or to configure it manually.

Used parser functions

Feature

Field type

Smart number field

Parsing mode

General

Expression
%{{issue.dueDate} != null ? max({issue.dueDate} - {system.currentDateTime}, 0) / DAY : null}
Label
Use case description

Return the duration between the current date and the due date of the current issue in days.

Complexity