Asana API - how to get incomplete tasks?

How do I get a list of tasks from an unfinished project? I tried adding ?completed=false

and ?completed=0

to the end of the tasks url:

https://app.asana.com/api/1.0/projects/[project id]/tasks?completed=false

      

... doesn't seem to work. Whether it's true or false, it always returns the same tasks. I checked the box to make sure the tasks are completed there.

background info: I'm only trying to do this so that I don't get the entire task list all the time. I need the whole list of tasks because right now, as far as I understand, there is no way to get the section the task is in.

+3


source to share


1 answer


Under the "Request for Tasks" section in the Developer Documentation, you will find parameters that you can pass to select different tasks. We do not support generic queries (for example completed=false

), but we do have, for example completed_since

, that returns all "incomplete or completed with X" tasks. So, if you only want incomplete tasks, you can go through completed_since=now

(since completed tasks don't run since the current point in time, they return incomplete tasks). It's not entirely intuitive, but it works :-)



+8


source







All Articles