Versions Compared

Key

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

UI Text Box
sizemedium
typeinfo

Use case

Elapsed time between creation and resolution in days.

Expression

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

Code Block
languagejs
linenumberstrue
 %{{issue.resolutionDate} != null ? (({issue.resolutionDate} - {issue.created}) / DAY ) : null}
UI Text Box

The duration can be retuned in years, weeks, days, hours or minutes if the DAY keyword is replaced in the above expression with the corresponding time constant.

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.


Page properties
hiddentrue
Feature

Field type

Smart number field

Parsing mode

General mode

Expression
Code Block
languagejs
linenumberstrue
 %{{issue.resolutionDate} != null ? (({issue.resolutionDate} - {issue.created}) / DAY ) : null}
UI Text Box

The duration can be retuned in years, weeks, days, hours or minutes if the DAY keyword is replaced in the above expression with the corresponding time constant.

Label
Use case description

Elapsed time between creation and resolution in days.

Complexity

 

Status
titleINTERMEDIATE
Â