# Get only a set of task custom\_fields

**URL:** <https://forum.asana.com/t/get-only-a-set-of-task-custom-fields/83380>\
**Category:** API & Developers\
**Tags:** custom-fields, tasks\
**Created:** [13 May 2020 18:22 UTC](https://forum.asana.com/t/get-only-a-set-of-task-custom-fields/83380 "2020-05-13T18:22:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfredo\_Martin](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/alfredo_martin/32/55162_2.png) [@Alfredo\_Martin](https://forum.asana.com/u/Alfredo_Martin)\
**Post date:** [13 May 2020 18:22 UTC](https://forum.asana.com/t/get-only-a-set-of-task-custom-fields/83380/1 "2020-05-13T18:22:03Z")

</div>

Hi there.

First of all, hello to everyone. This is my first post, so let’s see what happens 🙂  
I would like to get all tasks from a project with specific fields. In particular, I need only three out of all custom\_fields that a task may have. As I am importing data to a Google Sheet, I need a fixed number of fields coming. The problem is when a task belongs to several projects (each one with its own custom fields) and inherit all of them.

It would be something like

```
https://app.asana.com/api/1.0/projects/{project_id}/tasks?opt_fields=name,completed,completed_at,created_at,due_on,notes,parent.name,projects.name,assignee.name,memberships.section.name,custom_fields.name,custom_fields.enum_value.name

```

but with some kind of filter with specific custom\_fields gid to filter by.

Any ideas?

Thanks in advance.

Alfredo M.

---

<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:** [13 May 2020 18:40 UTC](https://forum.asana.com/t/get-only-a-set-of-task-custom-fields/83380/2 "2020-05-13T18:40:57Z")

</div>

Hi @Alfredo_Martin and welcome to the forum!

> [@Alfredo\_Martin](#):
>
> I would like to get all tasks from a project with specific fields.

Not possible, I’m afraid. You’ll have to retrieve all of the task’s custom fields and write some intermediate code to extract the field data you need, or write a Google Sheets script to do that.

---

<div class="post-metadata">

**Author:** ![Alfredo\_Martin](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/alfredo_martin/32/55162_2.png) [@Alfredo\_Martin](https://forum.asana.com/u/Alfredo_Martin)\
**Post date:** [13 May 2020 18:50 UTC](https://forum.asana.com/t/get-only-a-set-of-task-custom-fields/83380/3 "2020-05-13T18:50:21Z")

</div>

Thanks a lot @Phil_Seeman.  
I will try with Google Sheets script.

Alfredo

---

<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:06 UTC](https://forum.asana.com/t/get-only-a-set-of-task-custom-fields/83380/4 "2025-05-30T19:06:53Z")

</div>

Closed on 30 May 2025 19:06 UTC


