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

Return the days that have passed since the creation of the current issue.

Expression

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

 %{floor(({system.currentDateTime} - {issue.created})/DAY)}

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.


Used parser functions

Feature

Field type

Smart number field

Parsing mode

General

Expression


%{floor(({system.currentDateTime} - {issue.created})/DAY)}

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

Return the days that have passed since the creation of the current issue.

Complexity