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