Task search in workspace with no due date returns null

I just do in my browser https://app.asana.com/api/1.0/workspaces/MYWORKSPACEGID/tasks/search?due_on=null

and I got {“data”:}
but I have hundreds of tasks with empty (unset) due date in my workspace
What’s wrong?

And if you remove the due_on does it return something?

request: https://app.asana.com/api/1.0/workspaces/WORKSPACEGID/tasks/search

result:

{ "errors": [ { "message": "You must specify at least one search filter.", "help": "For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors" } ] }

But request

https://app.asana.com/api/1.0/workspaces/WORKSPACEGID/tasks/search?completed=false&opt_fields=due_on

works well. But in this case I should parse tasks with null due_on on my own. It’s not a proper way to use API I suppose.

Yes.
It can show some data with the due_on which is equal to null.

@Anton_Afanasev Thank you for bringing this up. There was a bug in our filtering logic for null due dates for this endpoint. We have sent a fix and you should now be able to search for tasks with null due dates.

2 Likes