I wanna get the categories of root causes, and also know if a root cause is active or not.
This is configured on the Project Admin/Issues/Services/Root Causes
session on the BIM 360.
I try to get the root causes using the API https://developer.api.autodesk.com/issues/v1/containers/:container_id/root-causes
documented at https://forge.autodesk.com/en/docs/bim360/v1/reference/http/root-causes-GET/.
But the response for this API doesn't tell what the category for the root cause, neither if it is active or not.
Here is a sample of the response:
{
"data": [
{
"id": "5502171c-9e38-427e-a49a-40fa6821dec4",
"type": "root_causes",
"links": {
"self": "https://developer.api.autodesk.com/issues/v1/containers/be00f32e-c03c-4c7b-9ec4-d2614bf1980cu2n/root-causes/5502171c-9e38-427e-a49a-40fa6821dec4"
},
"attributes": {
"key": "INSTALLATION",
"title": "Installation"
}
},
{
"id": "a3311fc6-4571-4fca-9fb4-37120d976bd2",
"type": "root_causes",
"links": {
"self": "https://developer.api.autodesk.com/issues/v1/containers/be00f32e-c03c-4c7b-9ec4-d2614bf1980cu2n/root-causes/a3311fc6-4571-4fca-9fb4-37120d976bd2"
},
"attributes": {
"key": "WEATHER",
"title": "Weather"
}
]
}
How can I discover the category and the activation status of the issue's root cause by API?
I had the same problem, I managed to solve it as follows, I made a request to the URL https://developer.api.autodesk.com/issues/v2/containers/[containerId]/issue-root-cause-categories?include=rootcauses&limit=9999 and then I scroll through the data and apply the filters I needed, I tried to pass some queryString but without success, so I decided to scroll through the data and filter there, I hope I have helped you.