Remove either the label use-case-smart-text or use-case-smart-number depending on the feature the use case is based on

Use case

Elapsed time between creation and resolution in days.

Expression

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

 %{{issue.resolutionDate} != null ? (({issue.resolutionDate} - {issue.created}) / DAY ) : null}

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.

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.


Feature

Field type

Smart number field

Parsing mode

General

Expression
 %{{issue.resolutionDate} != null ? (({issue.resolutionDate} - {issue.created}) / DAY ) : null}

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