Sum of time spent of epic and work items under it
Return the sum of the worklogs of an epic and the work items under it in hours.
Configuration
Create a Custom smart number field and use the General parsing mode.
Expression
%{%{issue.issueType} = "Epic" ? (sum(append(fieldValue({issue.timeSpent},
issuesUnderEpic()), [{issue.timeSpent}] ))/ 60) : null}
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.
Format
Default
Used parser functions
The links lead to the JWTC documentation because the parser functions are shared functionalities.