Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 3

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

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

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.

This example returns

info@decadis.de

To achieve this, the following functions are used:

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.


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.
Page properties
hiddentrue
Feature

Image Modified

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
 }
Label
Use case description

Elapsed time between creation and resolution in days.

Complexity

 

Status
titleINTERMEDIATE