Querying the Work Item Status List
Function
This API is used to query the work item status list.
Calling Method
For details, see Calling APIs.
Authorization Information
No identity policy-based permission required for calling this API.
URI
GET /v1/ipdprojectservice/projects/{project_id}/status
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition 32-character ID of a project, which must be unique. Obtain the value by calling the API for querying the IPD project list. The value of id in the response message body is the project ID. Constraints N/A Range A string of 32 characters consisting of letters and digits. Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| categories | Yes | String | Definition Work item type. Constraints 2 to 128 characters. Range Multiple work item types are supported, separated by commas (,), for example, IR,SR,AR.
Default Value N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Definition User token. Obtain a token by calling the IAM API for obtaining a user token. The value of X-Subject-Token in the response header is the user token. Constraints N/A Range 10 to 32,768 characters Default Value N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| result | StatusListResult object | Definition Status list. |
| status | String | Definition Response status. Range |
| message | String | Definition Error message. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| status | Array of StatusEntity objects | Definition Status list. |
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition Status ID. Range N/A |
| belonging | String | Definition Work item status. Range START, IN_PROGRESS, and END |
| display_value | String | Definition Status name. Range N/A |
| code | String | Definition Unique status ID. Range N/A |
| created_by | String | Definition Status creator. Range N/A |
| created_time | String | Definition Status creation time. Range N/A |
| modified_by | String | Definition Status modifier. Range N/A |
| modified_time | String | Definition Latest modification time of a status. Range N/A |
| category_code | Array of strings | Definition Work items that use the status. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition Error code. Range N/A |
| error_msg | String | Definition Error description, which is a supplement to error_code. Range N/A |
Example Requests
GET https://{endpoint}/v1/ipdprojectservice/projects/336ad84c67ea4783b2edc1bb5a112da0/status?categories=FE,IR Example Responses
Status code: 200
{
"status" : "success",
"message" : null,
"result" : {
"status" : [ {
"id" : "954399210965348356",
"belonging" : "START",
"display_value" : "Initial",
"code" : "Start",
"created_by" : "a360371833bf4c558f796fd707b44daf",
"created_time" : "1705476103000",
"modified_by" : "a360371833bf4c558f796fd707b44daf",
"modified_time" : "1705476103000",
"category_code" : [ "IR", "SR" ]
}, {
"id" : "954399210965348363",
"belonging" : "START",
"display_value" : "Analysis",
"code" : "Analyse",
"created_by" : "a360371833bf4c558f796fd707b44daf",
"created_time" : "1705476103000",
"modified_by" : "a360371833bf4c558f796fd707b44daf",
"modified_time" : "1705476103000",
"category_code" : [ "Bug", "IR", "SR" ]
}, {
"id" : "958806581085904896",
"belonging" : "IN_PROGRESS",
"display_value" : "openapi-test",
"code" : "s7150727397899378688",
"created_by" : "a360371833bf4c558f796fd707b44daf",
"created_time" : "1706526902000",
"modified_by" : "a360371833bf4c558f796fd707b44daf",
"modified_time" : "1706526902000",
"category_code" : [ "IR" ]
}, {
"id" : "954399210965348376",
"belonging" : "IN_PROGRESS",
"display_value" : "Test",
"code" : "Test",
"created_by" : "a360371833bf4c558f796fd707b44daf",
"created_time" : "1705476103000",
"modified_by" : "a360371833bf4c558f796fd707b44daf",
"modified_time" : "1705476103000",
"category_code" : [ "Bug", "IR", "SR" ]
}, {
"id" : "954399210965348369",
"belonging" : "IN_PROGRESS",
"display_value" : "Development",
"code" : "Develop",
"created_by" : "a360371833bf4c558f796fd707b44daf",
"created_time" : "1705476103000",
"modified_by" : "a360371833bf4c558f796fd707b44daf",
"modified_time" : "1705476103000",
"category_code" : [ "IR", "SR" ]
}, {
"id" : "954399210961154063",
"belonging" : "IN_PROGRESS",
"display_value" : "Confirm",
"code" : "ToBeConfirmed",
"created_by" : "a360371833bf4c558f796fd707b44daf",
"created_time" : "1705476103000",
"modified_by" : "a360371833bf4c558f796fd707b44daf",
"modified_time" : "1705476103000",
"category_code" : [ "Bug" ]
}, {
"id" : "954399210965348354",
"belonging" : "IN_PROGRESS",
"display_value" : "Recovery",
"code" : "Fixed",
"created_by" : "a360371833bf4c558f796fd707b44daf",
"created_time" : "1705476103000",
"modified_by" : "a360371833bf4c558f796fd707b44daf",
"modified_time" : "1705476103000",
"category_code" : [ "Bug" ]
}, {
"id" : "954399210961154057",
"belonging" : "IN_PROGRESS",
"display_value" : "Acceptance",
"code" : "Checking",
"created_by" : "a360371833bf4c558f796fd707b44daf",
"created_time" : "1705476103000",
"modified_by" : "a360371833bf4c558f796fd707b44daf",
"modified_time" : "1705476103000",
"category_code" : [ "Bug" ]
}, {
"id" : "954399210961154060",
"belonging" : "END",
"display_value" : "Closure",
"code" : "Closed",
"created_by" : "a360371833bf4c558f796fd707b44daf",
"created_time" : "1705476103000",
"modified_by" : "a360371833bf4c558f796fd707b44daf",
"modified_time" : "1705476103000",
"category_code" : [ "Bug" ]
}, {
"id" : "954399210965348381",
"belonging" : "END",
"display_value" : "Completed",
"code" : "Finish",
"created_by" : "a360371833bf4c558f796fd707b44daf",
"created_time" : "1705476103000",
"modified_by" : "a360371833bf4c558f796fd707b44daf",
"modified_time" : "1705476103000",
"category_code" : [ "IR", "SR" ]
} ]
}
} Status code: 400
{
"error_code" : "PM.02174103",
"error_msg" : "No permission."
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Response upon a request failure. For example, the user does not have the operation permission or the project does not exist. |
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