You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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 parsing mode:

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

This example returns the duration between the current date and the due date of the current issue in days.

To achieve this, the following functions are used:

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.