Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Asset API Endpoint bug

Oliver Wood April 5, 2024

in the UI of Assets there are the following status options

Action Needed,
Active,
Closed,
In Service,
Running,
Stopped,
Support Requested,
Disposed,
InActive,
In Stock,
In Transit,
In Use,
Missing,
Ordered,
Retired

However the following endpoint

/config/statustype should bring back all status options, however it is only bring back 7 records

[
{
"id": "1",
"name": "Action Needed",
"description": "",
"category": 2,
"objectSchemaId": null
},
{
"id": "2",
"name": "Active",
"description": "",
"category": 1,
"objectSchemaId": null
},
{
"id": "3",
"name": "Closed",
"description": "",
"category": 0,
"objectSchemaId": null
},
{
"id": "4",
"name": "In Service",
"description": "",
"category": 2,
"objectSchemaId": null
},
{
"id": "5",
"name": "Running",
"description": "",
"category": 1,
"objectSchemaId": null
},
{
"id": "6",
"name": "Stopped",
"description": "",
"category": 0,
"objectSchemaId": null
},
{
"id": "7",
"name": "Support Requested",
"description": "",
"category": 2,
"objectSchemaId": null
}
]
The irony is i can access the missing options via api call
/config/statustype/{id} etc
Is this a bug with the api or am i missing something

1 answer

1 accepted

1 vote
Answer accepted
Oliver Wood April 5, 2024

So are investigating, my assumption is the reason i cant see all the statuses is that some are global and some are schema specific.

However there doesnt seem to be a schema endpoint that can pull off all the statuses

and doesnt explain why i can access the schema status through the endpoint

/config/statustype/{id} but it wont appear with this endpoint /config/statustype

Oliver Wood April 5, 2024

To answer my own question

objectSchemaId will, bring back the statuses of the schema

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events