I'm trying to get a list of completed tasks from a given list in a folder from the ClickUp API. I want tasks that have a status called complete
.
The problem is, one task is being returned, but I know there are 40.
I know I have the right list ID because I've verified that it:
- Is returned as a list with the correct name if I query
/api/v2/space/${space_id_where_the_list_lives}/folder?archived=true
; - Is the list ID I see when I just open ClickUp and go to that folder/list in my browser.
Here's my query string:
https://api.clickup.com/api/v2/list/${id}/task?archived=true&include_closed=true&statuses%5B%5D=complete
For debugging, I've tried varying the statuses, etc, and other things mentioned in this similar question. That gave me some insights to debug, but my problem is I seem to be scoping what I want correctly, but ClickUp is just not returning all of the results.
Am I using the wrong route altogether?
The way it's organized, we have:
(space)
\----(folder)
\--- List 1
\--- List 2
\--- List 3 (ID of 12345)
\----(folder1)
\--- List 1
\--- List 2
\--- List 3 (ID of 67890)
I want to get all tasks from List 3, after getting its ID from querying the space ID.