Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Count all Done and Not Done subtasks across all tasks within an Epic

Suja Sugathan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 15, 2026

How to  Count all Done and Not Done subtasks across all tasks within an Epic whenever any subtask belonging to a task in that Epic is changed.

2 answers

1 vote
Christos Markoulatos -Relational-
Community Champion
January 16, 2026

Hi @Suja Sugathan 

You have to use automation and store the values in a field

Working solution:

  1. Trigger: Issue updated
  2. Condition: Issue type = Sub‑task
  3. Branch (Smart value):
  4. {{issue.parent.epic.key}}

Then

  1. Lookup Issues:
    To count all Not Done subtasks across all work items in the Epic, use the new JQL field:
  2. parentEpic = "{{issue.parent.epic.key}}" AND type = Sub-task AND status != Done
  3. Count the subtasks:
  4. {{lookupIssues.size|0}}

This returns the total number of matching subtasks (with |0 ensuring a fallback when none exist).

To store the values, you can add an “Edit Issue” action inside the Epic branch and write the count into your custom fields (e.g., Subtasks Done / Subtasks Not Done).

Hope this helps!

0 votes
Danut M _StonikByte_
Atlassian Partner
January 16, 2026

Hi @Suja Sugathan

Where do you want this info to be displayed, more exactly?

Do you want it on the epic screen, on the task screen, on a dashboard, in a report...

Danut.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events