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:
Expression | Description |
---|---|
%{{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.