Use the <durationinput> tag to add a field showing the duration of the time.
Available attributes:
Attribute
Type
Mandatory
Description
value
Specify the time in milliseconds.
Example:
<durationinput value="{data.currentTimeSpent}" maxValue="86340000" exclude='["days","seconds"]' alignRight="true" onChange="s_widget_custom.onChangeTimeSpent(arguments[0])"></durationinput>
The template above adds the following field to the page: