Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Count number of Task in Epic

Nguyen Thanh Tien
Contributor
September 9, 2024

I've created an automation to count the number of tasks in an Epic every time a task is added to or removed from the Epic, as configured below. 

Screenshot at Sep 09 17-39-59.png

 

However, this automation rule is not functioning correctly with the audit log, as detailed below. 

Screenshot at Sep 09 17-38-03.png

 

I hope to receive assistance from the community!

2 answers

1 accepted

0 votes
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 9, 2024

HI @Nguyen Thanh Tien 

Welcome to the community.

Your edit action should be a lookup acton.

In the action state the following: Parent = {{issue.key}}

Then the edit action on the field and the value is the value: {{lookupIssues}}

 

Also see article: https://community.atlassian.com/t5/Jira-questions/Smart-Value-to-display-the-sum-of-child-issues-linked-to-an-epic/qaq-p/2311631 

 

Nguyen Thanh Tien
Contributor
September 9, 2024

Hi @Marc - Devoteam , I have configured it as you advised (image 1), but I received the following error (images 2).

Additionally, regarding the field "Number of tasks in epic," it is a number type and exists in the Epic ticket (see image 3).

image 1

Screenshot at Sep 10 10-23-03.png

image 2Screenshot at Sep 10 10-22-50.png

image 3Screenshot at Sep 10 10-25-57.png

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 10, 2024

Hi @Nguyen Thanh Tien 

Sorry for my mistake.

In the edit action the smart value needs to be set as {{lookupIssues.size}}

Like • 2 people like this
Nguyen Thanh Tien
Contributor
September 10, 2024

It's working now! Thank you so much!

Like • Marc - Devoteam likes this
0 votes
shiva kumar Gosul
Contributor
September 9, 2024

@Nguyen Thanh Tien certainly, you can count the number of Tasks linked to corresponding epic. 

Go to Issues or structure and use this jql query "Epic link" = ABC-123

Above query will fetch all user story, Tasks and Defects if linked, if you want to know only Tasks or Story then

"Epic link" = ABC-123 AND issues Type = Task 

ABC-123 is Epic key. Let me know if you need further support.

All the Best!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events