Hi @Wiktor_Jurek,
-
When trying get all tasks for project using recursive function, Asana not returning all tasks → I don’t think being on Enterprise Legacy would affect you.
-
We’ve rolled out a fix for Get tasks from a project returns different number of tasks depending on page limit provided. so issues related to the pagination limit having the same number of tasks as a section and ending pagination early should not be an issue anymore.
are there any known limitations with the service account token and accessing tasks across projects
Not that I know of. If anything, it should have more permissions than a regular Personal Access Token (PAT).
Are you still experiencing this issue?
I tried to reproduce this issue by:
- Creating a project with multiple sections (e.g., 3 sections)
- Adding tasks to the sections in the projects (e.g., 7 tasks)
- Generated a Service Account Token
- Made an API call to the Get tasks from a project endpoint both via Postman and the python-asana client library (v5.0.10 and v5.0.11) changing the limit query param from 1-10 than tried query limit 100
- Did not run into the same issue as you did
Also, note that pagination is handled by default with the python-asana client library so you do not need to provide a limit
query param. When you provide a limit query param what it does is change how the python client makes API calls to Asana. By default, the query limit is 100 if you don’t specify anything if you specify 5 for example in the background the python client will make API calls with page limits of 5 and stitch them together into a paginated result.
Could you please try testing again to see if the issue persists? If you still encounter the problem, could you provide additional details about your setup? This will help us reproduce and troubleshoot the issue more effectively.