# How can return all the substask. Task and subtask in the same call.

**URL:** <https://forum.asana.com/t/how-can-return-all-the-substask-task-and-subtask-in-the-same-call/94096>\
**Category:** API & Developers\
**Created:** [10 September 2020 15:28 UTC](https://forum.asana.com/t/how-can-return-all-the-substask-task-and-subtask-in-the-same-call/94096 "2020-09-10T15:28:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon16089076](https://luna1.co/8d76cd.png) [@anon16089076](https://forum.asana.com/u/anon16089076)\
**Post date:** [10 September 2020 15:28 UTC](https://forum.asana.com/t/how-can-return-all-the-substask-task-and-subtask-in-the-same-call/94096/1 "2020-09-10T15:28:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [10 September 2020 19:03 UTC](https://forum.asana.com/t/how-can-return-all-the-substask-task-and-subtask-in-the-same-call/94096/2 "2020-09-10T19:03:16Z")

</div>

Hi @anon16089076,

You can’t, unfortunately - you have to retrieve the subtasks separately. The API team has explained to us that this is for performance reasons - something along the lines that asking for a set of tasks and all of their subtasks in one call can potentially return too big of a data set for the API to handle reliably.

---

<div class="post-metadata">

**Author:** ![anon16089076](https://luna1.co/8d76cd.png) [@anon16089076](https://forum.asana.com/u/anon16089076)\
**Post date:** [11 September 2020 06:29 UTC](https://forum.asana.com/t/how-can-return-all-the-substask-task-and-subtask-in-the-same-call/94096/3 "2020-09-11T06:29:20Z")

</div>

Thanks, so I have to do:

1. One call for the task.
2. And other call with the subsktask, and if my substask have sub - subtasks, in this call i can give the information of the sub-substask or i have to do other call for the information.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 18:57 UTC](https://forum.asana.com/t/how-can-return-all-the-substask-task-and-subtask-in-the-same-call/94096/4 "2025-05-30T18:57:30Z")

</div>

Closed on 30 May 2025 18:57 UTC


