# Options: For a task, return just 1 Custom Field

**URL:** <https://forum.asana.com/t/options-for-a-task-return-just-1-custom-field/59404>\
**Category:** API & Developers\
**Tags:** tasks\
**Created:** [5 September 2019 18:14 UTC](https://forum.asana.com/t/options-for-a-task-return-just-1-custom-field/59404 "2019-09-05T18:14:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rocco.haro](https://luna1.co/8d76cd.png) [@rocco.haro](https://forum.asana.com/u/rocco.haro)\
**Post date:** [5 September 2019 18:14 UTC](https://forum.asana.com/t/options-for-a-task-return-just-1-custom-field/59404/1 "2019-09-05T18:14:59Z")

</div>

Thanks in advance.

I’m using the ruby-asana gem to query tasks. I pass an options object that looks like  
opts = {fields: [‘created\_at’, ‘modified\_at’, ‘completed\_at’, ‘custom\_fields.enum\_value.name’, ‘tags.name’]}.

It works, but the task.custom\_fields returns an array of all the possible custom fields that are associated with this task.

For our purposes, it would be more efficient to just get the value for 1 custom field, rather than having to loop through that array, so I tried changing opts to:

opts = {fields: [‘created\_at’, ‘modified\_at’, ‘completed\_at’, ‘custom\_fields..enum\_value’, ‘tags.name’]}

But it still returns an array. Is what i’m trying to accomplish possible? I figured it would be because in the search API we are capable of filtering by custom\_field..value and such.

Please let me know if i’m doing something wrong, or what i’m trying to do isn’t possible.

Kind regards.

---

<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:** [5 September 2019 19:48 UTC](https://forum.asana.com/t/options-for-a-task-return-just-1-custom-field/59404/2 "2019-09-05T19:48:28Z")

</div>

No, there’s no option to just get the value from one custom field.

---

<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/options-for-a-task-return-just-1-custom-field/59404/3 "2025-05-30T18:57:56Z")

</div>


