# Fetch Custom Field value changes for each Status

**URL:** <https://forum.asana.com/t/fetch-custom-field-value-changes-for-each-status/840295>\
**Category:** API & Developers\
**Tags:** status-updates, custom-fields, projects\
**Created:** [20 June 2024 14:59 UTC](https://forum.asana.com/t/fetch-custom-field-value-changes-for-each-status/840295 "2024-06-20T14:59:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr-ts](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/dr-ts/32/246313_2.png) [@dr-ts](https://forum.asana.com/u/dr-ts)\
**Post date:** [20 June 2024 14:59 UTC](https://forum.asana.com/t/fetch-custom-field-value-changes-for-each-status/840295/1 "2024-06-20T14:59:58Z")

</div>

I am trying to fetch changes in our status updates on a project over time. We use 2 custom fields to track risks. For example, our Status Updates look like so…

**Status 1**

 ![image](https://us1.discourse-cdn.com/asana/original/3X/9/0/9085052d9f62decd29945affc067bbfd8a4b2192.png)

I’m able to grab all the fields except for the two Custom Fields with arrows next to them. The `/api/1.0/status_updates` doesn’t appear to have a `custom_fields` property , but the UI certainly shows these updates over time so the data must be somewhere 😄

* * *

Sample python code to test it out.

```python
# pip install: asana
# pip install: rich

import datetime as dt

from asana.rest import ApiException
import asana
import rich

ASANA_ACCESS_TOKEN = "nope"
ASANA_PROJECT_GID = "nah"
ASANA_PROJECT_STATUS_GID = "noty"

# CONFIG
configuration = asana.Configuration()
configuration.access_token = ASANA_ACCESS_TOKEN

# API
api_client = asana.ApiClient(configuration)

# ENDPOINT
status_updates_api_instance = asana.StatusUpdatesApi(api_client)

opts = {
    'opt_fields': ",".join([
        "title",
        "created_at",
        "modified_at",
        "status_type",
        "text",

        # test attributes...
        "custom_fields",
        "parent",
        "resource_subtype",
    ]),
}

# DO THE WORK
try:
    api_response = status_updates_api_instance.get_status(ASANA_PROJECT_STATUS_GID, opts)
except ApiException as e:
    rich.print("Exception when calling StatusUpdatesApi->get_status: %s\n" % e)
else:
    rich.print(
        {
            "gid": ASANA_PROJECT_STATUS_GID,
            "project_id": ASANA_PROJECT_GID,
            "status": api_response["status_type"],
            "title": api_response["title"],
            "primary_risk": ...,
            "secondary_risk": ...,
            "description": api_response["text"],
            "created_at_datetime": api_response["created_at"],
            "modified_at_datetime": api_response["modified_at"],
            "_last_load_time": dt.datetime.now(),

            # test attributes...
            "extra": {
                "custom_fields": api_response.get("custom_fields"),
                "parent": api_response["parent"],
                "resource_subtype": api_response["resource_subtype"],
            }
        }
    )

```

Is there an API I can use to fetch this data?

---

<div class="post-metadata">

**Author:** ![dr-ts](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/dr-ts/32/246313_2.png) [@dr-ts](https://forum.asana.com/u/dr-ts)\
**Post date:** [20 June 2024 15:01 UTC](https://forum.asana.com/t/fetch-custom-field-value-changes-for-each-status/840295/2 "2024-06-20T15:01:14Z")

</div>

Asana forums limit me from attaching more than 1 media file at once… so first two posts will show the custom fields being tracked across updates.

**Status 2**

 ![image](https://us1.discourse-cdn.com/asana/original/3X/6/7/67b0c60a6149e492df8502df42d2d89d20652540.png)

---

<div class="post-metadata">

**Author:** ![dr-ts](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/dr-ts/32/246313_2.png) [@dr-ts](https://forum.asana.com/u/dr-ts)\
**Post date:** [20 June 2024 15:01 UTC](https://forum.asana.com/t/fetch-custom-field-value-changes-for-each-status/840295/3 "2024-06-20T15:01:47Z")

</div>

**Status 3**

 ![image](https://us1.discourse-cdn.com/asana/original/3X/0/1/0125e5e631f1297485eb617fb1874bb7b5140143.png)

---

<div class="post-metadata">

**Author:** ![David\_Neal](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/david_neal/32/242025_2.png) [@David\_Neal](https://forum.asana.com/u/David_Neal)\
**Post date:** [20 June 2024 19:04 UTC](https://forum.asana.com/t/fetch-custom-field-value-changes-for-each-status/840295/4 "2024-06-20T19:04:22Z")

</div>

Hi @dr-ts! Welcome to the forum!

I don’t have an answer for you yet, but I am investigating and hope to give you an update soon.

---

<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:** [20 June 2024 20:02 UTC](https://forum.asana.com/t/fetch-custom-field-value-changes-for-each-status/840295/5 "2024-06-20T20:02:22Z")

</div>

See also [Create Status Asana Custom fields - #12 by Phil\_Seeman](https://forum.asana.com/t/create-status-asana-custom-fields/163158/12)

---

<div class="post-metadata">

**Author:** ![dr-ts](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/dr-ts/32/246313_2.png) [@dr-ts](https://forum.asana.com/u/dr-ts)\
**Post date:** [21 June 2024 13:48 UTC](https://forum.asana.com/t/fetch-custom-field-value-changes-for-each-status/840295/6 "2024-06-21T13:48:20Z")

</div>

Thanks @Phil_Seeman ! I found that one during my searching before posting but saw it was from 2022.

Are we saying that this is still not possible with the public APIs, even though the client itself shows it happening? Asan appears to be able to query this infomration internally.

---

<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:** [22 June 2024 02:53 UTC](https://forum.asana.com/t/fetch-custom-field-value-changes-for-each-status/840295/7 "2024-06-22T02:53:04Z")

</div>

@dr-ts It’s still not possible AFAIK. @David_Neal might come back with additional info, perhaps.

---

<div class="post-metadata">

**Author:** ![Dave\_Brong](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/dave_brong/32/12220_2.png) [@Dave\_Brong](https://forum.asana.com/u/Dave_Brong)\
**Post date:** [29 August 2024 19:52 UTC](https://forum.asana.com/t/fetch-custom-field-value-changes-for-each-status/840295/8 "2024-08-29T19:52:29Z")

</div>

I, too, am interested in this.

There is a workaround (sort of) - place the project into a Portfolio, with that custom field (if you do not already do this - get the custom field to show in the Status update).

Then use the API to pull the portfolio entirely, with the custom field optional field, like this:

[https://app.asana.com/api/1.0/portfolios/{portfolio\_id}/items?opt\_fields=custom\_fields](https://app.asana.com/api/1.0/portfolios/%7Bportfolio_id%7D/items?opt_fields=custom_fields)

This will expose the custom fields to you. However, you don’t get the history of them unfortunately - just the latest one.
