# When pulling tasks in a project, how can I get it to return all related fields?

**URL:** <https://forum.asana.com/t/when-pulling-tasks-in-a-project-how-can-i-get-it-to-return-all-related-fields/603874>\
**Category:** API & Developers\
**Created:** [13 November 2023 23:44 UTC](https://forum.asana.com/t/when-pulling-tasks-in-a-project-how-can-i-get-it-to-return-all-related-fields/603874 "2023-11-13T23:44:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trevor\_Wightman](https://luna1.co/8d76cd.png) [@Trevor\_Wightman](https://forum.asana.com/u/Trevor_Wightman)\
**Post date:** [13 November 2023 23:44 UTC](https://forum.asana.com/t/when-pulling-tasks-in-a-project-how-can-i-get-it-to-return-all-related-fields/603874/1 "2023-11-13T23:44:18Z")

</div>

I am running this get request: [https://app.asana.com/api/1.0/tasks?project=123456789](https://app.asana.com/api/1.0/tasks?project=123456789)

This returns all of the tasks, however, it only includes the following four fields. How can I get it to return the other 30 fields associated with the task? Can I have the manually list out all fields with the opt\_fields= argument? Or can I do it via an easier method?

data.0.gid  
data.0.name  
data.0.resource\_type  
data.0.resource\_subtype

---

<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:** [14 November 2023 08:32 UTC](https://forum.asana.com/t/when-pulling-tasks-in-a-project-how-can-i-get-it-to-return-all-related-fields/603874/2 "2023-11-14T08:32:01Z")

</div>

> [@Trevor\_Wightman](#):
>
> Can I have the manually list out all fields with the opt\_fields= argument?

That’s the answer; `opt_fields` is your friend. 🙂

---

<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:** [21 November 2023 08:32 UTC](https://forum.asana.com/t/when-pulling-tasks-in-a-project-how-can-i-get-it-to-return-all-related-fields/603874/3 "2023-11-21T08:32:45Z")

</div>

Closed on 21 November 2023 08:32 UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
