# Is there any way in the REST API to return all tasks of resource\_type 'milestone'?

**URL:** <https://forum.asana.com/t/is-there-any-way-in-the-rest-api-to-return-all-tasks-of-resource-type-milestone/45670>\
**Category:** API & Developers\
**Created:** [27 March 2019 12:01 UTC](https://forum.asana.com/t/is-there-any-way-in-the-rest-api-to-return-all-tasks-of-resource-type-milestone/45670 "2019-03-27T12:01:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Simard](https://luna1.co/8d76cd.png) [@Steven\_Simard](https://forum.asana.com/u/Steven_Simard)\
**Post date:** [27 March 2019 12:01 UTC](https://forum.asana.com/t/is-there-any-way-in-the-rest-api-to-return-all-tasks-of-resource-type-milestone/45670/1 "2019-03-27T12:01:17Z")

</div>

I’m looking to get a task that has the same name in multiple projects (I don’t really know in which projects they are since we’re constantly creating some new projects) and the only thing that I can use to select them would be the fact that they are milestones.

I added a custom tag to these tasks and I used the GET /tags/XXXX/tasks REST API and it worked.  
However, it would be better for me if I could do this without having to tag these tasks since it will be hard to tag them all without forgetting any.

Thanks

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [27 March 2019 12:51 UTC](https://forum.asana.com/t/is-there-any-way-in-the-rest-api-to-return-all-tasks-of-resource-type-milestone/45670/2 "2019-03-27T12:51:48Z")

</div>

Please note that “milestone” is a `resource_subtype`, not a `resource_type`.

Currently there’s no documented way to do this, as there’s no way to retrieve only tasks of a certain `resource_subtype`.

@Joe_Trollo, what do you think about adding `resource_subtype` as a search criterion in the Search API? The `resource_subtype` field has become pretty important now, what with sections and milestones; might you think about adding it to Search?

---

<div class="post-metadata">

**Author:** ![Steven\_Simard](https://luna1.co/8d76cd.png) [@Steven\_Simard](https://forum.asana.com/u/Steven_Simard)\
**Post date:** [27 March 2019 13:03 UTC](https://forum.asana.com/t/is-there-any-way-in-the-rest-api-to-return-all-tasks-of-resource-type-milestone/45670/3 "2019-03-27T13:03:01Z")

</div>

Thanks for the answer, I’ll find another way until it’s resolved then!

---

<div class="post-metadata">

**Author:** ![Joe\_Trollo](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/joe_trollo/32/4025_2.png) [@Joe\_Trollo](https://forum.asana.com/u/Joe_Trollo)\
**Post date:** [16 April 2019 17:27 UTC](https://forum.asana.com/t/is-there-any-way-in-the-rest-api-to-return-all-tasks-of-resource-type-milestone/45670/4 "2019-04-16T17:27:45Z")

</div>

The [search API](https://asana.com/developers/documentation/getting-started/search-api) has been updated to take a `resource_subtype` query parameter, so you can fetch only tasks that are milestones by using `resource_subtype=milestone` (or only tasks that are _not_ milestones by using `resource_subtype=default_task`).

---

<div class="post-metadata">

**Author:** ![Bastien\_Siebman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/bastien_siebman/32/172354_2.png) [@Bastien\_Siebman](https://forum.asana.com/u/Bastien_Siebman)\
**Post date:** [16 June 2019 19:00 UTC](https://forum.asana.com/t/is-there-any-way-in-the-rest-api-to-return-all-tasks-of-resource-type-milestone/45670/5 "2019-06-16T19:00:48Z")

</div>

@Joe_Trollo you made my day, I was looking for this 🙂

---

<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 18:57 UTC](https://forum.asana.com/t/is-there-any-way-in-the-rest-api-to-return-all-tasks-of-resource-type-milestone/45670/6 "2025-05-30T18:57:59Z")

</div>

Closed on 30 May 2025 18:57 UTC


