Hi,
Background and Use Case
I am using Asana’s API to retrieve all tasks in an organization. I am using an enterprise level subscription with a service account for retrieving tasks. I am able to retrieve all tasks within projects in the organization, but I run into some issues with the private “My Tasks” lists.
Using Curl, I am able to retrieve tasks in the user task list using the service account, even if the tasks are private and have no project. However, I cannot retrieve these without the gid, which I am currently accessing though the browser. It appears there is no easy way to access these task lists through code.
My question
Is there an easy, efficient way to get all tasks in a project, including personal task lists?
Current Workaround
I believe this should work but I have yet to test it
-
Enumerating each user in the organization, then getting their personal task lists.
-
Enumerate each task in their personal tasks which is not already associated with a project in the organization.
-
Continue with working strategy I am currently using:
a. Enumerate all projects in organization
b. Enumerate all tasks in each project
This strategy should avoid double counting any two tasks but still get all tasks. However, this is a very long, roundabout way of achieving this. Is there an easier way?
Thanks in advance,
Ani