Asana API for projects assigned to me

For assignments assigned to me, I see how I can do

curl -u <api_key>: "https://app.asana.com/api/1.0/tasks?workspace=14916&assignee=me"

I am trying to make a quick page that breaks my current tasks and links to Asana for me, so I can have my own quick access toolbar.

I have my own API key

  • It lists all the workspaces of which I am a part.
  • If I click the Workspace, it will display all the projects inside this space
  • If I click "Project", I want to see only those tasks that were assigned to me inside this project.

  • If I add the project identifier to the above call, it will send back to me every element in the project, and not just those that are assigned to me.

  • If I exit the project identifier, it will return all tasks assigned to me, even those that are outside the project.

Did I miss something?

Thanks for any help!

Note. I would add an Asana tag, but it does not exist yet.

+1
source share
2 answers

In the current version of the API, it seems that the assignee parameter is ignored if specified for projects. No matter what I put below, I get the same result: all tasks.

curl -u <api-key>: "https://app.asana.com/api/1.0/projects/<pid>/tasks?assignee=here-it-can-be-anything"
0
source

I also have problems with this - it seems that you cannot expand projects when requesting tasks - and you cannot receive assignments for a project ... The first option is preferable since you can provide a list of tasks for a project if you can expand a project.

Be that as it may, you can get a list of tasks, then run a loop and get the complete task by task ID, but this takes some time ...

0
source

All Articles