Querying the Review List (BRs/GRs)
Function
This API is used to query the list of BRs or GRs.
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.
URI
POST /v1/ipdprojectservice/projects/{project_id}/process-instances/query
| 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 |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| filter | Yes | Array of filter objects | Definition Filter condition array. The logical relationship between multiple objects is AND. |
| sort | No | Array of sort objects | Definition Sorting parameter array. Multiple objects are sorted by object sequence. |
| page | No | page object | Definition Pagination parameter object. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| field | No | field object | Definition Filter field. Constraints Filter fields for query. Range Obtain the filter field name through the filter on the GUI. The options are as follows: category: type status created_date: creation time approver: decision maker cc: Cc recipient Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| field | No | String | Definition Sorting field. Constraints Sorting field of the query object. Range Sorting identifier fields in the table header. Default Value N/A |
| asc | No | Boolean | Definition Ascending or not. Constraints N/A Range true and false Default Value N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| status | String | Definition Response status. Range success: The response is successful. error: The response failed. |
| message | String | Definition Request information. Range N/A |
| result | result object | Definition Request result. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| total | Integer | Definition Total number. Range N/A |
| process_instances | Array of process_instances objects | Definition Review list. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| cc | String | Definition Cc recipient. Multiple values are separated by commas (,). Range N/A |
| approver | String | Definition Review decision-maker. Range N/A |
| closed_time | String | Definition Review completion time. Range N/A |
| reviewer | String | Definition Review expert. Range N/A |
| type | String | Definition Review type. Range N/A |
| title | String | Definition Title. Range N/A |
| modified_date | String | Definition Modification time. Range N/A |
| created_by | UserVO object | Definition Creator. Range N/A |
| domain_id | String | Definition Project space ID. Range N/A |
| number | String | Definition Review No. Range N/A |
| need_approval | String | Definition Whether the review needs to be approved by the decision-maker. Range N/A |
| modified_by | UserVO object | Definition Modifier. Range N/A |
| approval_time | String | Definition Approval time. Range N/A |
| plan_end_date | String | Definition Planned end time. Range N/A |
| id | String | Definition Review ID. Range N/A |
| state | String | Definition Review data status. Range N/A |
| created_date | String | Definition Creation time. Range N/A |
| category | String | Definition Review type. Range N/A |
| plan_start_date | String | Definition Planned start time. Range N/A |
| status | status object | Definition Review status. Range N/A |
| ccbs | Array of UserObject objects | Definition Decision-maker object list. Range N/A |
| opinions | Array of opinions objects | Definition List of opinion objects. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| user_id | String | Definition User ID. Range N/A |
| user_num_id | Integer | Definition Short ID of a user. Range N/A |
| user_name | String | Definition Username. Range N/A |
| domain_id | String | Definition ID of the domain to which the user belongs. Range N/A |
| domain_name | String | Definition Tenant name. Range N/A |
| nick_name | String | Definition User alias. Range N/A |
| role_id | String | Definition Role ID. If a user has multiple roles in a project, use commas (,) to separate the values. Range N/A |
| role_name | String | Definition Role name. If a user has multiple roles, use commas (,) to separate the values. Range N/A |
| role_code | String | Definition Role code. If a user has multiple roles, use commas (,) to separate the values. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| code | String | Definition Status code. Range N/A |
| name | String | Definition Status name. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| watcher | String | Definition Favorited or not. Range N/A |
| user_id | String | Definition User ID. Range N/A |
| user_num_id | String | Definition Digital ID of a user. Range N/A |
| user_name | String | Definition Username. Range N/A |
| domain_id | String | Definition Tenant ID. Range N/A |
| domain_name | String | Definition Tenant name. Range N/A |
| nick_name | String | Definition Alias. Range N/A |
| role_id | String | Definition Role ID. Range N/A |
| role_name | String | Definition Role name. Range N/A |
| image_id | String | Definition User avatar. Range N/A |
| region | String | Definition Region. Range N/A |
| opinion | String | Definition Comments. Range N/A |
| description | String | Definition Description. Range N/A |
| owner | String | Definition Owner. Range N/A |
| ccbId | String | Definition Decision-maker ID. Range N/A |
| has_removed | String | Definition Whether the user is removed from the project. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition Primary key of an opinion. Range N/A |
| type | String | Definition Type. Range N/A |
| state | String | Definition Data status. Range N/A |
| status | String | Definition Opinion status. Range N/A |
| region | String | Definition Region. Range N/A |
| category | String | Definition Type. Range N/A |
| title | String | Definition Title. Range N/A |
| rounds | String | Definition Rounds of reviews. Range N/A |
| opinion | String | Definition Review comment. Range N/A |
| description | String | Definition Description. Range N/A |
| modified_by | String | Definition Modifier. Range N/A |
| modified_date | String | Definition Modification time. Range N/A |
| created_by | UserObject object | Definition Creator. Range N/A |
| created_date | String | Definition Creation time. Range N/A |
| tenant_id | String | Definition Tenant ID. Range N/A |
| domain_id | String | Definition Project space ID. Range N/A |
| issue_category | String | Definition Object type. Range N/A |
| issue_id | String | Definition Object ID. Range N/A |
| curr_owner | UserObject object | Definition Current owner. Range N/A |
| co_id | String | Definition Change object ID. Range N/A |
| user_id | String | Definition User ID. Range N/A |
| opinion_issue_id | String | Definition Review work item ID. Range N/A |
| opinion_issue_category | String | Definition Review work item type. Range N/A |
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
Querying the BR list
POST https://{endpoint}/v1/ipdprojectservice/projects/b811b0bef58b479d9b5e4ab856b349ab/process-instances/query
Body parameters:
{
"filter": [
{
"category": {
"values": [
"BR"
],
"operator": "||"
}
},
{
"status": {
"values": [
"Committed",
"ToBeReviewed",
"ToBeApproved",
"Rejected",
"Passed",
"Canceled",
"TurnBacked"
],
"operator": "||"
}
},
{
"created_date": {
"values": [
1753632000000,
1753718399999
],
"operator": "<>"
}
},
{
"approver": {
"values": [
"0dcd2224fcda451ebd983b0e8dd9e6ee"
],
"operator": "||"
}
}
],
"page": {
"page_no": 1,
"page_size": 20
}
} Example Responses
Status code: 200
{
"status" : "success",
"message" : "null",
"result" : {
"total" : 1,
"process_instances" : [ {
"cc" : "a360371833bf4c558f796fd707b44daf,68dbd07f132e4005a263156085df6af3,29da565ad02d4aa081568420a15fcaa9,0dcd2224fcda451ebd983b0e8dd9e6ee",
"approver" : "0dcd2224fcda451ebd983b0e8dd9e6ee",
"closed_time" : "null",
"reviewer" : "68dbd07f132e4005a263156085df6af3",
"type" : "process_instance",
"title" : "test",
"modified_date" : "1753694214029",
"created_by" : {
"user_id" : "a360371833bf4c558f796fd707b44daf",
"user_num_id" : "null",
"user_name" : "devcloud_devcloud_01",
"domain_id" : "4e919d73499648e3b0292cd3cbef806a",
"domain_name" : "null",
"nick_name" : "Sam 1",
"role_id" : "0c4370789ec246bb9f5480077e1119d5,0438be11ed284528ae79c8afd054ecf1",
"role_name" : "Project manager and project administrator"
},
"domain_id" : "1155517541943128064",
"number" : "BR20250728665812",
"need_approval" : "yes",
"modified_by" : {
"user_id" : "a360371833bf4c558f796fd707b44daf",
"user_num_id" : "null",
"user_name" : "devcloud_devcloud_01",
"domain_id" : "4e919d73499648e3b0292cd3cbef806a",
"domain_name" : "null",
"nick_name" : "Sam 1",
"role_id" : "0c4370789ec246bb9f5480077e1119d5,0438be11ed284528ae79c8afd054ecf1",
"role_name" : "Project manager and project administrator"
},
"approval_time" : "null",
"plan_end_date" : "null",
"id" : "1156640623684530177",
"state" : "In use",
"created_date" : "1753694214029",
"category" : "BR",
"plan_start_date" : "null",
"status" : {
"code" : "ToBeReviewed",
"name" : "Pending review"
},
"ccbs" : [ {
"watcher" : "null",
"user_id" : "0dcd2224fcda451ebd983b0e8dd9e6ee",
"user_num_id" : "null",
"user_name" : "devcloud_devcloud_01/build_admin_trust",
"domain_id" : "4e919d73499648e3b0292cd3cbef806a",
"domain_name" : "null",
"nick_name" : "null",
"role_id" : "b91711747d2043afa8fbd7657960c74f",
"role_name" : "Developer",
"image_id" : "null",
"region" : "null",
"opinion" : "null",
"description" : "null",
"owner" : "null",
"ccbId" : "null",
"has_removed" : "null"
} ],
"opinions" : [ {
"id" : "null",
"type" : "null",
"state" : "null",
"status" : "null",
"region" : "null",
"category" : "null",
"title" : "null",
"rounds" : "null",
"opinion" : "null",
"description" : "null",
"modified_by" : "null",
"modified_date" : "null",
"created_by" : {
"watcher" : "null",
"user_id" : "68dbd07f132e4005a263156085df6af3",
"user_num_id" : "null",
"user_name" : "devcloud_devcloud_01/deploy_admin_trust",
"domain_id" : "4e919d73499648e3b0292cd3cbef806a",
"domain_name" : "null",
"nick_name" : "null",
"role_id" : "b91711747d2043afa8fbd7657960c74f",
"role_name" : "Developer",
"image_id" : "null",
"region" : "null",
"opinion" : "null",
"description" : "null",
"owner" : "null",
"ccbId" : "null",
"has_removed" : "null"
},
"created_date" : "null",
"tenant_id" : "null",
"domain_id" : "null",
"issue_category" : "null",
"issue_id" : "null",
"curr_owner" : {
"watcher" : "null",
"user_id" : "68dbd07f132e4005a263156085df6af3",
"user_num_id" : "null",
"user_name" : "devcloud_devcloud_01/deploy_admin_trust",
"domain_id" : "4e919d73499648e3b0292cd3cbef806a",
"domain_name" : "null",
"nick_name" : "null",
"role_id" : "b91711747d2043afa8fbd7657960c74f",
"role_name" : "Developer",
"image_id" : "null",
"region" : "null",
"opinion" : "null",
"description" : "null",
"owner" : "null",
"ccbId" : "null",
"has_removed" : "null"
},
"co_id" : "null",
"user_id" : "null",
"opinion_issue_id" : "null",
"opinion_issue_category" : "null"
} ]
} ]
}
} 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