api icon indicating copy to clipboard operation
api copied to clipboard

Subtasks API ignores completed parameter

Open idpaterson opened this issue 8 years ago • 1 comments

Today I noticed that a request for subtasks in a list was returning the same data regardless of the completed parameter. Both complete and incomplete subtasks are returned in either case which was causing duplicate task IDs in my sync process. If this has always been the case I would be happy to update the documentation to explain what the completed parameter does or to remove that parameter if it is unused. Please just confirm whether this is expected behavior or a bug.

idpaterson avatar Aug 21 '16 23:08 idpaterson

I'm getting the same behaviour for list:

GET a.wunderlist.com/api/v1/subtasks?list_id=1234&completed=true

And for Tasks:

GET a.wunderlist.com/api/v1/subtasks?task_id=1234&completed=true

As you can see below the responde include both, completed and "pending" subtasks:

[
{
"id": 12,
"task_id": 1234,
"completed": true,
"completed_at": "2016-09-17T21:58:40.714Z",
"created_at": "2016-09-17T21:53:54.962Z",
"revision": 2,
"title": "Subtask 2",
"type": "subtask"
},
{
"id": 13,
"task_id": 1234,
"completed": false,
"created_at": "2016-09-17T21:53:58.920Z",
"revision": 1,
"title": "Subtask NN",
"type": "subtask"
}
]

lgallard avatar Sep 17 '16 22:09 lgallard