+ Add Question

getAllCompletedItems No Items

RM

I am calling getAllCompletedItems and all I receive is

{"items": [], "projects": {}}

I am a premium user, but i'm just not receiving any tasks. I have used the account.

I can get all tasks from a particular project_id using getCompletedItems.

Is there something special about this?

Only parameters I am sending is the api token.

All responses

David Trey staff
Replied on Jan 02, 2014 - 12:43

Hello Royston,

I'll pass your question to the developers and will let you know as soon as I hear from them.


Best regards,
David

Amir Salihefendic staff
Replied on Feb 05, 2014 - 18:22

Hi Royston

This isn't something we can reproduce. Is this still an issue?

Regards,
Amir

RM
Royston Malcomber premium
Replied on Mar 23, 2014 - 11:56

Hello, I have just tried it and it appears to work. Is there a time frame for the getAllCompletedItems ? I appear to only get the last weeks worth? I think this might of been my initial problem, there was not completed items in the past week when I first had this problem.

- Cheers,

Royston

David Trey staff
Replied on Mar 24, 2014 - 12:49

Hello Royston,

We've mentioned it in the documentation: https://todoist.com/API/

Optional parameters:
(...)
interval: Restrict time range, default is past 2 weeks, can be following:
past 2 weeks
past month
past 6 months
all


Best regards,
David

RM
Royston Malcomber premium
Replied on Mar 24, 2014 - 13:10

Thank you so much, I am a complete Arse

JL
Jeremy Lichfield premium
Replied on May 07, 2014 - 19:10

Other interval options?
yesterday
today
past week

Thx
Jeremy

J
johnathan.eshleman premium
Replied on Jul 07, 2014 - 19:02

Sorry for revving an old post.. But it appears as though the api for getAllCompletedItems has changed. I no longer see the interval parameter in the documentation and my results are now significantly different than they used to be..

My goal is to get all of my completed items from the past month..

Old call: https://api.todoist.com/API/getAllCompletedItems?token=XXXXXXXXXX&interval=past%20month&

This still returns some results, but definitely not a month's worth.. I've also added the "limit" parameter with higher limits with no change.

Any ideas. Thanks.

Clyde Romo staff
Replied on Jul 08, 2014 - 06:20

Hi Johnathan,

We have passed your question along to our developer and we'll get back to you with an update. :-)

Regards,

Clyde

Clyde Romo staff
Replied on Jul 19, 2014 - 17:37

Hi Johnathan,

Our developers has advised that you should now do multiple requests and do paging.

Regards,

Clyde