...
In this scripted field, the categorySummary() function returns long type. Based on the parameters, the logged time is summarized and it will return in seconds.
Selecting the Duration (time-tracking) custom script field template for this field will ensure a better time unit display.
...
Worklog cost summary on Issue screen
...