# \[search API\] due\_on=null does not work

**URL:** <https://forum.asana.com/t/search-api-due-on-null-does-not-work/128612>\
**Category:** API & Developers\
**Created:** [14 July 2021 06:37 UTC](https://forum.asana.com/t/search-api-due-on-null-does-not-work/128612 "2021-07-14T06:37:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![skai\_yeung](https://luna1.co/8d76cd.png) [@skai\_yeung](https://forum.asana.com/u/skai_yeung)\
**Post date:** [14 July 2021 06:37 UTC](https://forum.asana.com/t/search-api-due-on-null-does-not-work/128612/1 "2021-07-14T06:37:08Z")

</div>

[Asana API Explorer](https://developers.asana.com/explorer) GET /workspaces/AAAAAA/tasks/search?opt\_fields=gid,assignee,due\_on,name,completed,assignee\_status&created\_by.any=BBBBB&completed=false&projects.any=CCCCC&due\_on=null

res: { “data”: }

but with

GET /workspaces/AAAAAA/tasks/search?opt\_fields=gid,assignee,due\_on,name,completed,assignee\_status&created\_by.any=BBBBB&completed=false&projects.any=CCCCC

res: { “data”: [  
(skipped)  
{ “gid”: “SSSSS”, “assignee”: { “gid”: “DDDDD”, “resource\_type”: “user” }, “assignee\_status”: “inbox”, “completed”: false, “due\_on”: null, “name”: “Testing task, please do not delete” },  
(skipped) ] }

Could you provide some help?

---

<div class="post-metadata">

**Author:** ![skai\_yeung](https://luna1.co/8d76cd.png) [@skai\_yeung](https://forum.asana.com/u/skai_yeung)\
**Post date:** [14 July 2021 07:33 UTC](https://forum.asana.com/t/search-api-due-on-null-does-not-work/128612/2 "2021-07-14T07:33:04Z")

</div>

![image](https://us1.discourse-cdn.com/asana/original/3X/e/e/eef776f7243830002eefa5fa6e7a355f45fd3e11.png)

---

<div class="post-metadata">

**Author:** ![ShunS](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/shuns/32/115053_2.png) [@ShunS](https://forum.asana.com/u/ShunS)\
**Post date:** [31 July 2021 18:08 UTC](https://forum.asana.com/t/search-api-due-on-null-does-not-work/128612/3 "2021-07-31T18:08:14Z")

</div>

Hi @skai_yeung, I can reproduce the behavior.  
Asana API returns the correct tasks when I pass the actual `YYYY-MM-DD` date to the `due_on` parameter. However, it seems `due_on=null` is not working correctly and it’s swapped with the search not specifying “due\_on”.  
I think we’ll need to wait for the Asana team to help us.

---

<div class="post-metadata">

**Author:** ![skai\_yeung](https://luna1.co/8d76cd.png) [@skai\_yeung](https://forum.asana.com/u/skai_yeung)\
**Post date:** [24 November 2021 04:10 UTC](https://forum.asana.com/t/search-api-due-on-null-does-not-work/128612/4 "2021-11-24T04:10:30Z")

</div>

Hi @ShunS. Thanks for the reproduction.

---

<div class="post-metadata">

**Author:** ![John\_Vu](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/john_vu/32/97235_2.png) [@John\_Vu](https://forum.asana.com/u/John_Vu)\
**Post date:** [21 July 2022 22:16 UTC](https://forum.asana.com/t/search-api-due-on-null-does-not-work/128612/5 "2022-07-21T22:16:04Z")

</div>

@skai_yeung Thank you for the reproduction and screenshots. We have determined that this was a bug related to the filtering logic for null due dates for this endpoint. A fixed has been deployed and you should now be able to filter for tasks that do not have a due date.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 19:03 UTC](https://forum.asana.com/t/search-api-due-on-null-does-not-work/128612/6 "2025-05-30T19:03:47Z")

</div>

Closed on 30 May 2025 19:03 UTC


