Querying Status Change Results of All Issues
Function
This API is used to query the status change results of all issues under the current tenant.
Calling Method
For details, see Calling APIs.
Authorization Information
No identity policy-based permission required for calling this API.
URI
GET /v1/defects/next-status
Request Parameters
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
String |
Definition: Response status. Value range: |
|
result |
Array of ToStatus objects |
Definition: status change results of all issues. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Definition: Issue initial status ID. Range: N/A |
|
toStatus |
Array of strings |
Definition: Issue target status ID. Range: N/A |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Definition: Error code. Value range: N/A |
|
error_msg |
String |
Definition: Error message. Value range: N/A |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Definition: Error code. Value range: N/A |
|
error_msg |
String |
Definition: Error message. Value range: N/A |
Example Requests
Query the status change results of all issues under the current tenant.
GET https://{endpoint}/v1/defects/next-status
Example Responses
Status code: 200
Response body for querying the status change results of all issues.
{
"status" : "success",
"error" : null,
"result" : [ {
"id" : "0",
"toStatus" : [ "1", "2", "5" ]
}, {
"id" : "1",
"toStatus" : [ "0", "2", "5" ]
}, {
"id" : "2",
"toStatus" : [ "0", "1", "5" ]
}, {
"id" : "5",
"toStatus" : [ "0", "1", "2" ]
} ]
}
Status code: 400
Bad Request
{
"error_code" : "CC.xxxxxxxx.400",
"error_msg" : "Verify request parameter failed. Check whether the request parameters are correct."
}
Status code: 401
Unauthorized
{
"error_code" : "CC.00000003",
"error_msg" : "Authentication information expired."
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Response body for querying the status change results of all issues. |
|
400 |
Bad Request |
|
401 |
Unauthorized |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot