Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

UI Text Box
sizemedium
typeinfo

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

Code Block
languagejs
linenumberstrue
%{{issue.dueDate} != null ? max({issue.dueDate} - {system.currentDateTime}, 0) / DAY : null}
UI Text Box
typetip

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

Page properties
hiddentrue
Feature

Field type

Smart number field

Parsing mode

General

Expression
Code Block
languagejs
linenumberstrue
%{{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

Status
colourGreen
titleBeginner
Â