Use case
Return the sum of the worklogs of an epic and the issues under it.
Expression
Create and configure a Smart field using this expression in General parsing mode:
%{(sum(fieldValue({issue.timeSpent}, issuesUnderEpic())) + {issue.timeSpent}) * 60 / {issue.cf10136} * 100 }