URL
GET https://{api-url}/api/v2/tenants/{tenantId}/{ticketType}/statusReasons
Sample URLs
These are the supported ticket types and sample URLs:
Ticket Type | Sample URL |
---|---|
Change request | https://{api-url}/api/v2/tenants/client_93/changeRequests/statusReasons |
Incident | https://{api-url}/api/v2/tenants/client_93/incidents/statusReasons |
Problem | https://{api-url}/api/v2/tenants/client_93/problems/statusReasons |
Service request | https://{api-url}/api/v2/tenants/client_93/serviceRequests/statusReasons |
Task | https://{api-url}/api/v2/tenants/client_93/tasks/statusReasons |
Time bound request | https://{api-url}/api/v2/tenants/client_93/timeBoundRequests/statusReasons |
The
enabled: true/false
field helps to identify the status change reason is enabled.
Status code
200 OK
Sample response
[{
"id": "17",
"module": "INCIDENT",
"status": "On Hold",
"enabled": "true",
"statusReasons": [{
"id": "9",
"name": "change open to on hold"
}]
},
{
"id": "18",
"module": "INCIDENT",
"status": "Resolved",
"enabled": "true",
"statusReasons": [{
"id": "3",
"name": "Reason for Resolved status"
},
{
"id": "6",
"name": "resolved reason 2"
}
]
},
{
"id": "19",
"module": "INCIDENT",
"status": "Closed",
"enabled": "true",
"statusReasons": [{
"id": "4",
"name": "closed reason 2"
},
{
"id": "1",
"name": "Closing Ticket Reason"
}
]
},
{
"id": "41",
"module": "INCIDENT",
"status": "Open",
"enabled": "true",
"statusReasons": [{
"id": "10",
"name": "open incident reason"
}]
},
{
"id": "42",
"module": "INCIDENT",
"status": "Pending",
"enabled": "false"
}
]