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

Compare with Current View Page History

« Previous Version 2 Next »

Use case

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

Expression

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

 %{{issue.dueDate} != null ? max({issue.dueDate} - {system.currentDateTime}, 0) / HOUR : 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.