So I have no status
In my instance of Jira service management, I have status types (e.g., Active, Inactive, On Hold) managed across multiple schemas. The status type is specific to the object. I am creating a mapping table in AWS to update object items via API. I need to cross-reference the status with the status ID when I transform data that is updated in the target Jira asset object.
I am not aware of an API endpoint that can pull statuses across all objects. The default /v1/config/statustype only pulls global status types. I plan to loop
through all assets /v1/objectschema/{id}/attributes and evaluate
each object record, look for the type within the object, in my case “type”: 7, and then
extract all the values in the “typeValueMulti” field which is an array of the numeric value of each type listed in the /jira/servicedesk/assets/configure/object-schema/{id}?tab=statuses
Is there a better approach than what I am creating?
Should I create a function to iterate over each schema and extract the status, or would someone suggest a different approach? I’m looking for opinions, not someone to develop it for me, as I can handle that. I’m considering whether an AQL would be sufficient for this task. I want to ensure my application is resilient so that as new status values are added, I won’t need to hard-code any of them.