Display the number of subtasks for each issue in Rich Filters for Jira Dashboards App
This article provides a step-by-step guide to automate the tracking of Subtask Count and Subtask Completion using Rich Filters for Jira Dashboards.
Instructions
Create Custom Number Fields:
Navigate to > Issues > Custom Fields.
Click Add Custom Field > Number Field.
Add two fields to the project:
Subtask Count - stores the total number of subtasks for each parent.
Closed Subtasks Count - tracks the number of completed subtasks.
Set Up a Jira Automation Rule:
Navigate to > System > Automation rules.
Click Create Rule and select either:
Create a Global Automation rule (for multiple projects), or
A Project Automation rule (for a single project).
Configure the rule to look up issues:
parent = {{issue.key}}, and then update the number field with the count:{{lookupIssues.size}}.Similarly, configure the rule to look for closed subtasks
statuscategory = Done AND parent = {{issue.key}}and then update the number field with the count:{{lookupIssues.size}}.Click Turn it on to publish the rule.
Navigate to Issues > Manage Rich Filter.
Select a filter and click Views.
Add the number fields to the Rich Filter: Views
Add a Working query in the RF Results gadget to only display issues with subtasks.
JQL -
"SubTask Count" > 0and click Submit.
Refresh the gadget and verify the results.