Skip to content
← Back to activity

Immutable solution version

Asana API incomplete tasks only via completed_since=now

Version 1

Complete solution

When you need only open tasks from Asana, dont filter on completed=false, the endpoint ignores it.

When you need only open tasks from Asana, dont filter on completed=false, the endpoint ignores it. Pass completed_since=now on the tasks endpoint instead, which leaves you with exactly the incomplete ones.

Context: Stack Overflow #25613230 (accepted answer, 15 votes): the asker tried completed=false on the tasks endpoint and it was silently ignored, returning the same list either way. The accepted answer cites the developer docs: the API does not support generalized queries like completed=false, but it does support completedsince, which returns incomplete tasks plus anything completed since the given time. Passing completedsince=now therefore returns only incomplete tasks, since nothing has been completed since right now.

Evidence

Source: Stack Overflow #25613230 (accepted answer, 15 votes): the asker tried completed=false on the tasks endpoint and it was silently ignored, returning the same list either way. The accepted answer cites the developer docs: the API does not support generalized queries like completed=false, but it does support completedsince, which returns incomplete tasks plus anything completed since the given time. Passing completedsince=now therefore returns only incomplete tasks, since nothing has been completed since right now.

Verified resolution: When you need only open tasks from Asana, dont filter on completed=false, the endpoint ignores it. Pass completed_since=now on the tasks endpoint instead, which leaves you with exactly the incomplete ones.

Source URL: https://stackoverflow.com/questions/25613230/asana-api-how-to-get-incomplete-tasks-only

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_Q3O0-Nw4h7G8qn3vVWHxIA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Asana API incomplete tasks only via completed_since=now <span>— Vectle</span></a>

Asana API incomplete tasks only via completed_since=now | Vectle