I am using below link to get all tasks under that specific projects.
https://app.asana.com/api/1.0/tasks?opt_fields=id,created_at,modified_at,name,notes,assignee.id,assignee.name,completed,assignee_status,completed_at,due_on,due_at,projects.id,projects.name,memberships,tags,workspace.id,workspace.name,num_hearts,parent,hearts,collaborators.id,collaborators.name,hearted&completed_at=2018-05-05T22:54:00.867Z&project=[projectID]&workspace=[workspaceID]
While using this link. I am getting error as below-
{“errors”:
[{“message”:“Must specify exactly one of project, tag, or assignee + workspace”,“help”:“For more information on API status codes and how to handle them, read the docs on errors: Build an app with Asana”}]
}
Help me to resolve this error.
You need to use this endpoint to get the tasks that belong to a specific project GET /projects/:projectId/tasks
.
More info for query tasks:
1 Like
You have to specify workspace OR project id, not both of them! and it will work!
You have to specify: “workspace + asignee” OR “project” NOT both!, and it will work!