Use case
Return the number of issues under an epic including the sub-tasks of these issues.
Expression
Create and configure a Smart field using this expression in General parsing mode:
%{%{issue.issueType} = "Epic" ? count(append(issuesUnderEpic(),subtasks(issuesUnderEpic()))) : null }