Help Center/ CodeArts Check/ API Reference/ APIs/ Code Issues/ Querying Status Change Results of All Issues
Updated on 2026-02-03 GMT+08:00

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

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Language

No

String

Definition:

Language of the response.

Constraints:

N/A

Value range:

  • zh-cn: Chinese.

  • en-us: English.

Default value:

zh-cn

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

status

String

Definition:

Response status.

Value range:

  • success: successful.

  • error: failed.

result

Array of ToStatus objects

Definition:

status change results of all issues.

Table 3 ToStatus

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

Table 4 Response body parameters

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

Table 5 Response body parameters

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.