We created a NEW subtask called 'defect-task' for our projects so users can now differentiate between a sub-task or defect-task under an issue. However, we would like have a count under the parent of the number of defect-tasks. Using automation, I was able to count the total number of subtasks under any given parent using {{issue.subtasks.size}} but the result also includes sub-task counts.