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
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. Value range: |
| toStatus | Array of strings | Definition: Issue target status ID array. Value 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
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.
What is your overall rating for this page?
Thank 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