# Trying to pull specific Task's information but reponse doesn't include relevant fields

**URL:** <https://forum.asana.com/t/trying-to-pull-specific-tasks-information-but-reponse-doesnt-include-relevant-fields/158261>\
**Category:** API & Developers\
**Tags:** productivity, api, custom-fields, tasks\
**Created:** [22 March 2022 08:12 UTC](https://forum.asana.com/t/trying-to-pull-specific-tasks-information-but-reponse-doesnt-include-relevant-fields/158261 "2022-03-22T08:12:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon57800381](https://luna1.co/8d76cd.png) [@anon57800381](https://forum.asana.com/u/anon57800381)\
**Post date:** [22 March 2022 08:12 UTC](https://forum.asana.com/t/trying-to-pull-specific-tasks-information-but-reponse-doesnt-include-relevant-fields/158261/1 "2022-03-22T08:12:45Z")

</div>

Hi  
I’m using the asana module in order to access API  
My objective is to get tasks information and specifically descriptions.  
Here’s my code line of the get request:

`result = client.tasks.get_task(task_id, {'param': 'value', 'param': 'value'})`

The response simply include a lot of ‘enum\_options’ , without the fields I require  
Unfortunately, couldn’t figure by myself what’s wrong , and the API docs show that I don’t need to add/omit anything from the code.

I’m sharing the JSON I’m getting in response, for better understanding, (the \*\*\* are hidden gids edited by me)  
please note the “custom\_fields” array which should have included the task description :

{‘gid’: ‘\*\*\*\*\*\*\*\*\*\*\*\*\*\*’, ‘assignee’: {‘gid’:\*\*\*\*\*\*\*\*\*\*\*\*\*, ‘name’: ‘Asaf Shtrul’, ‘resource\_type’: ‘user’}, ‘assignee\_status’: ‘inbox’, ‘assignee\_section’: {‘gid’: ‘1200602043400127’, ‘name’: ‘Recently assigned’, ‘resource\_type’: ‘section’}, ‘completed’: False, ‘completed\_at’: None, ‘created\_at’: ‘2022-02-20T10:19:25.554Z’, ‘custom\_fields’: [{‘gid’: ‘537852508174241’, ‘enabled’: True, ‘enum\_options’: [{‘gid’: ‘537852508174242’, ‘color’: ‘red’, ‘enabled’: True, ‘name’: ‘High’, ‘resource\_type’: ‘enum\_option’}, {‘gid’: ‘537852508174243’, ‘color’: ‘orange’, ‘enabled’: True, ‘name’: ‘Medium’, ‘resource\_type’: ‘enum\_option’}, {‘gid’: ‘537852508174244’, ‘color’: ‘yellow-orange’,

Please help:)

---

<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:** [22 March 2022 12:10 UTC](https://forum.asana.com/t/trying-to-pull-specific-tasks-information-but-reponse-doesnt-include-relevant-fields/158261/2 "2022-03-22T12:10:39Z")

</div>

Hi,

You need to ask for the `opt_fields` you want to see. Search the API doc for that keyword you’ll find explanations 😉  
Let us know if we can help further.

---

<div class="post-metadata">

**Author:** ![anon57800381](https://luna1.co/8d76cd.png) [@anon57800381](https://forum.asana.com/u/anon57800381)\
**Post date:** [22 March 2022 16:58 UTC](https://forum.asana.com/t/trying-to-pull-specific-tasks-information-but-reponse-doesnt-include-relevant-fields/158261/3 "2022-03-22T16:58:45Z")

</div>

Thanks for that!

Iv’e tried it also already-

First time with ‘custom\_fields’ as field name

It shortened the JSON but still didnt supplied any new information.

Sec with ‘description’ , it returned a json with solely the gid.

Can you please elaborate regarding the right way to use opt\_fields ?

What am I missing ?

---

<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:** [23 March 2022 12:56 UTC](https://forum.asana.com/t/trying-to-pull-specific-tasks-information-but-reponse-doesnt-include-relevant-fields/158261/4 "2022-03-23T12:56:49Z")

</div>

You can look at the [" Input/Output Options" section of the doc](https://developers.asana.com/docs/input-output-options)

Let us know if that helps

---

<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:04 UTC](https://forum.asana.com/t/trying-to-pull-specific-tasks-information-but-reponse-doesnt-include-relevant-fields/158261/5 "2025-05-30T19:04:28Z")

</div>

Closed on 30 May 2025 19:04 UTC


