Number of sub-tasks based on status and work item type
Return the number of sub-tasks in the Done or Complete status.
Configuration
Create a Custom smart number field and use the General parsing mode.
Expression
%{count(filterByIssueType(filterByStatus(subtasks(), "Done, Completed"), "Sub-task,
Sub-story"))}
Please, note that by changing "Done, Completed" into other statuses and "Sub-task, Sub-story" into other issue types, you can adapt this use case for your needs.
Format
Default
Used parser functions
The links lead to the JWTC documentation because the parser functions are shared functionalities.