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

Querying Status Change Results of All Issues

Function

Query all issue status changes based on the tenant of the current caller.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account root user has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

Action

Access Level

Resource Type (*: required)

Condition Key

Alias

Dependencies

codeartscheck:task:getReport

Read

task *

-

-

-

-

codeartscheck:ProjectId

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.

Value range:

  • 0: pending

  • 2: resolved

  • 5: ignored

toStatus

Array of strings

Definition:

Issue target status ID array.

Value 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

A request error occurred.

{
  "error_code" : "CC.xxxxxxxx.400",
  "error_msg" : "Verify request parameter failed. Check whether the request parameters are correct."
}

Status code: 401

The permission is insufficient.

{
  "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

A request error occurred.

401

The permission is insufficient.

Error Codes

See Error Codes.