Retrieve Subtask Ids from Parent task via API
complete
M
Mohammad Sohomow
It would be great if we could retrieve a list of Subtask ids in the response when querying a parent task via the Task & Tasks endpoints. It works great when looking up a subtask but requires sifting through all tasks in a list given a Parent task.
Log In
G
Grzegorz Cieslik
Philipp Berner
Well that's not an answer for Mohammad questions, I also wonder why we have to list the thousands of tasks from list to get the subtask ids by the parent parameter. It makes the scripts slower and slower. This also increases the use of api calls, because it's limited to 100 task per call. So if I have 2000 tasks on list and only 50 are parents. To get the data of Parent:Subtasks I have to use 20 API calls instead of 1 ... .
Philipp Berner
complete
GET Task https://developer.clickup.com/reference/gettask offers the ability to also get sub-tasks via
include_subtasks
optionJohn
You can retrieve the subtasks with the parent in the getTask call by adding the include_subtasks=true parameter. This doesn't work with getTasks though because of the potential size of the response with 100 tasks and each of their subtasks.