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

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.


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

Elapsed time between creation and resolution in days.

Complexity

 

Status
titleINTERMEDIATE