ok - it was a quick fix which will be part of Release e2.20.4 … 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"
}
}
]