# Getting completed tasks

**URL:** <https://forum.asana.com/t/getting-completed-tasks/1073>\
**Category:** API & Developers\
**Tags:** api, tasks\
**Created:** [24 March 2017 10:45 UTC](https://forum.asana.com/t/getting-completed-tasks/1073 "2017-03-24T10:45:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![waghanza](https://luna1.co/8d76cd.png) [@waghanza](https://forum.asana.com/u/waghanza)\
**Post date:** [24 March 2017 10:45 UTC](https://forum.asana.com/t/getting-completed-tasks/1073/1 "2017-03-24T10:45:12Z")

</div>

Hi,

I have a trouble regarding asana **API**.

I have to search for `completed` **tasks**.

I request the **API** throught

`https://app.asana.com/api/1.0/tasks?assignee=XXX&workspace=XXX&=opt_fields=completed,name&completed=true&limit=10` and some task in the `json` body have

```plaintext
completed: false

```

Has anyone notice this behavior ?

---

<div class="post-metadata">

**Author:** ![Shannon\_McNeil](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/shannon_mcneil/32/402_2.png) [@Shannon\_McNeil](https://forum.asana.com/u/Shannon_McNeil)\
**Post date:** [24 March 2017 23:59 UTC](https://forum.asana.com/t/getting-completed-tasks/1073/2 "2017-03-24T23:59:48Z")

</div>

I’m looping in our Developer Relations Lead, @Matt_Bramlage, to see if he can help troubleshoot! 🙂

---

<div class="post-metadata">

**Author:** ![Matt\_Bramlage](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/matt_bramlage/32/145_2.png) [@Matt\_Bramlage](https://forum.asana.com/u/Matt_Bramlage)\
**Post date:** [28 March 2017 17:11 UTC](https://forum.asana.com/t/getting-completed-tasks/1073/3 "2017-03-28T17:11:48Z")

</div>

Hi @waghanza,

Unfortunately, we don’t have the sort of filtering in our API where you can query to a subset of tasks that match an arbitrary pattern that you specify (i.e. “only the tasks where `completed=true`”). We also don’t have an easy way to only get the completed tasks. You can get all _incomplete_ tasks fairly easily by specifying `completed_since=now` on the [tasks query](https://asana.com/developers/api-reference/tasks#query) endpoint - which is admittedly a bit strange, but works - but its converse (get only completed tasks) doesn’t exist 😕

We are evaluating use cases for this sort of thing, though, so you might see it at some point! For now, however, the only way to go about this is to get all the tasks and filter out the incomplete ones on your side.

---

<div class="post-metadata">

**Author:** ![Lennart](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/lennart/32/5017_2.png) [@Lennart](https://forum.asana.com/u/Lennart)\
**Post date:** [17 July 2017 11:52 UTC](https://forum.asana.com/t/getting-completed-tasks/1073/4 "2017-07-17T11:52:16Z")

</div>

It would be great to be able to filter to completed state, or get the completed flag in the result of `/projects/project-id/tasks`, which currently only just gives id and name.

Use case would be for a simple statistics app that monitors progress accross a number of projects.  
I’ve worked around it now by retrieving the flag from each individual task withing the project, but this makes the process very slow and requires a lot of API requests for larger projects.

---

<div class="post-metadata">

**Author:** ![Jeff\_Schneider](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/jeff_schneider/32/146_2.png) [@Jeff\_Schneider](https://forum.asana.com/u/Jeff_Schneider)\
**Post date:** [6 August 2018 17:35 UTC](https://forum.asana.com/t/getting-completed-tasks/1073/5 "2018-08-06T17:35:01Z")

</div>

Hey @Lennart,

We’ve recently launched a [Search API endpoint](https://asana.com/developers/documentation/getting-started/search-api) that allows you to do server-side task filtering. It’s similar to the advanced search in the web product. Hopefully, this helps with future projects.

Cheers!  
Jeff

---

<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:07 UTC](https://forum.asana.com/t/getting-completed-tasks/1073/6 "2025-05-30T19:07:02Z")

</div>


