# Feature - APIs dont pull the status of an item

**URL:** https://discussions.eramba.org/t/feature-apis-dont-pull-the-status-of-an-item/1734
**Category:** Forum - Software
**Created:** [November 23, 2020, 12:12pm UTC](https://discussions.eramba.org/t/feature-apis-dont-pull-the-status-of-an-item/1734 "2020-11-23T12:12:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![eramba](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/e/c6cbf5/32.png) [@eramba](https://discussions.eramba.org/u/eramba)
#### Post date: [November 25, 2020, 3:42pm UTC](https://discussions.eramba.org/t/feature-apis-dont-pull-the-status-of-an-item/1734/2 "2020-11-25T15:42:37Z")

</div>

ok - it was a quick fix which will be part of [Release e2.20.4](https://discussions.eramba.org/t/release-e2-20-4/1737) … the json view method now shows for every item an array with all the possible status on that section an which one is active (1) or not (0) … if they are all 0 then it means the item is “OK” (the default green status) … just look at the “value” element

```
    "DynamicStatusValue": [
        {
            "id": "9578",
            "dynamic_status_id": "42",
            "model": "RiskException",
            "foreign_key": "5",
            "value": "0",
            "created": "2020-03-16 17:18:06",
            "modified": "2020-11-25 14:56:07",
            "DynamicStatus": {
                "id": "42",
                "name": "Expired",
                "description": null,
                "color": "#FF9800",
                "status": "1"
            }
        },
        {
            "id": "11499",
            "dynamic_status_id": "211",
            "model": "RiskException",
            "foreign_key": "5",
            "value": "0",
            "created": "2020-05-30 10:54:21",
            "modified": "2020-05-30 10:54:21",
            "DynamicStatus": {
                "id": "211",
                "name": "Completed",
                "description": null,
                "color": "#4CAF50",
                "status": "2"
            }
        }
    ]
```

---

_[View the full topic](https://discussions.eramba.org/t/feature-apis-dont-pull-the-status-of-an-item/1734)._
