# Total number of tasks of a project

**URL:** <https://forum.asana.com/t/total-number-of-tasks-of-a-project/93243>\
**Category:** API & Developers\
**Created:** [1 September 2020 10:34 UTC](https://forum.asana.com/t/total-number-of-tasks-of-a-project/93243 "2020-09-01T10:34:27Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ShunS](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/shuns/32/115053_2.png) [@ShunS](https://forum.asana.com/u/ShunS)\
**Post date:** [29 December 2020 01:40 UTC](https://forum.asana.com/t/total-number-of-tasks-of-a-project/93243/7 "2020-12-29T01:40:57Z")

</div>

Hi @Willem_Dewulf,  
It’s interesting to hear that the admin console counts subtasks too!

I needed to update task description of all tasks in a project before, and I looped through tasks to get their subtasks.  
I assume that method is all what we have for counting subtasks through API.  
It’s not ideal because the for loop of GET requests was really slow, it sometimes takes an hour.

Edit: I found this discussion relevant.

> [@How can return all the substask. Task and subtask in the same call.](https://forum.asana.com/t/how-can-return-all-the-substask-task-and-subtask-in-the-same-call/94096):
>
> Hi, I want to return in the same call, the task and subtask. Because I have more than 1000 task so the call: {{baseUrl}}/tasks/:task\_gid/subtasks? but I try to do with the call of projects because it is more quickly ant effective for my job. How it is posible? this call not return the subtask /projects/project\_gid/tasks?opt\_expand=custom\_fields,subtask this return the task but not the subtask Thanks

---

_[View the full topic](https://forum.asana.com/t/total-number-of-tasks-of-a-project/93243)._
