Help Center/ CodeArts Req/ API Reference/ API/ IPD Review Management/ Querying the List of Reviews Associated with a Work Item by Work Item ID
Updated on 2026-10-13 GMT+08:00

Querying the List of Reviews Associated with a Work Item by Work Item ID

Function

This API is used to query the list of associated reviews by work item ID. Change reviews (CRs), general reviews (GRs), and baseline reviews (BRs) can be queried.

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}/process-instances/query/{issue_id}

Table 1 Path Parameters

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

issue_id

Yes

String

Definition

Unique ID of a work item. You can obtain the value from the Querying Work Items or Querying Tree-shaped Work Items API. The value is id in the response body.

Constraints

N/A

Range

A string of 18 to 19 digits.

Default Value

N/A

Request Parameters

Table 2 Request header 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

Table 3 Response body parameters

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

Table 4 result

Parameter

Type

Description

total

Integer

Definition

Total number.

Range

N/A

process_instances

Array of process_instances objects

Definition

Review list.

Range

N/A

Table 5 process_instances

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

Table 6 UserVO

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

Table 7 status

Parameter

Type

Description

code

String

Definition

Status code.

Range

N/A

name

String

Definition

Status name.

Range

N/A

Table 8 UserObject

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

Table 9 opinions

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

Table 10 Response body parameters

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 list of change reviews associated with a work item

https://{endpoint}/v1/ipdprojectservice/projects/{project_id}/process-instances/query/{issue_id}

Example Responses

Status code: 200

{
  "status" : "success",
  "message" : "",
  "result" : {
    "total" : 3,
    "process_instances" : [ {
      "approver" : "c533da3e53244b589e7175bb766859ac",
      "cr2co" : "",
      "description" : "<p><strong>[GR Background]</strong></p><p><br></p><p><strong>[GR Benefits]</strong></p><p><br></p><p><strong>[GR Details]</strong></p><br>",
      "type" : "process_instance",
      "title" : "GR - Verifying the Association Between the IR with Three Types of Reviews",
      "modified_date" : "1773633182962",
      "created_by" : {
        "user_id" : "a360371833bf4c558f796fd707b44daf",
        "user_name" : "devcloud_devcloud_xxx_01",
        "domain_id" : "4e919d73499648e3b0292cd3cbef806a",
        "nick_name" : "fortest1-devuc",
        "role_id" : "64a130fe0a4b4bb4921768a5b327a30a,66dcdb43ec68486190d48d65d853fb3b",
        "role_name" : "Project admin,Project manager"
      },
      "handing_cos" : "",
      "security_level" : "",
      "domain_id" : {
        "id" : "1145370089831313408",
        "state" : "In use",
        "title" : "IPD-bugfix-M1-0627 Association Map",
        "project_id" : "de7115f62a96485b8ceaac6e68c701c4",
        "category" : "Project",
        "created_by" : "a360371833bf4c558f796fd707b44daf",
        "modified_by" : "a360371833bf4c558f796fd707b44daf",
        "tenant_id" : "4e919d73499648e3b0292cd3cbef806a",
        "model_id" : "10001",
        "project_template_id" : "10001",
        "category_template_id" : "10001",
        "feature_template_id" : "10001"
      },
      "number" : "GR20260316368608",
      "need_approval" : "yes",
      "modified_by" : {
        "user_id" : "a360371833bf4c558f796fd707b44daf",
        "user_name" : "devcloud_devcloud_xxx_01",
        "domain_id" : "4e919d73499648e3b0292cd3cbef806a",
        "nick_name" : "fortest1-devuc",
        "role_id" : "64a130fe0a4b4bb4921768a5b327a30a,66dcdb43ec68486190d48d65d853fb3b",
        "role_name" : "Project admin,Project manager"
      },
      "id" : "1240270720865181697",
      "state" : "In use",
      "created_date" : "1773633182962",
      "category" : "GR",
      "status" : {
        "code" : "ToBeApproved",
        "name" : "To be decided"
      },
      "ccbs" : [ {
        "user_id" : "c533da3e53244b589e7175bb766859ac",
        "user_name" : "xiaoxionghui001",
        "domain_id" : "4e919d73499648e3b0292cd3cbef806a",
        "nick_name" : "Alias",
        "role_id" : "64a130fe0a4b4bb4921768a5b327a30a",
        "role_name" : "Project manager"
      } ]
    }, {
      "cr2co" : "1240270447476252673",
      "description" : "<p>Change type: Move to/from a baselined release or sprint.</p><li class='bullet'>Changed field 1: Release</li><p>Before change:</p><p>After change:R111</p>",
      "closed_time" : "1773633151806",
      "type" : "process_instance",
      "title" : "[Change-Initial Requirement] IR20260316368700 \"Release\" Modification - Verifying the Association Between the IR and Three Types of Reviews",
      "modified_date" : "1773633151863",
      "created_by" : {
        "user_id" : "a360371833bf4c558f796fd707b44daf",
        "user_name" : "devcloud_devcloud_xxx_01",
        "domain_id" : "4e919d73499648e3b0292cd3cbef806a",
        "nick_name" : "fortest1-devuc",
        "role_id" : "64a130fe0a4b4bb4921768a5b327a30a,66dcdb43ec68486190d48d65d853fb3b",
        "role_name" : "Project admin,Project manager"
      },
      "handing_cos" : "1240270447476252673",
      "security_level" : "",
      "domain_id" : {
        "id" : "1145370089831313408",
        "state" : "In use",
        "title" : "IPD-bugfix-M1-0627 Association Map",
        "project_id" : "de7115f62a96485b8ceaac6e68c701c4",
        "category" : "Project",
        "created_by" : "a360371833bf4c558f796fd707b44daf",
        "modified_by" : "a360371833bf4c558f796fd707b44daf",
        "tenant_id" : "4e919d73499648e3b0292cd3cbef806a",
        "model_id" : "10001",
        "project_template_id" : "10001",
        "category_template_id" : "10001",
        "feature_template_id" : "10001"
      },
      "number" : "CR20260316368607",
      "need_approval" : "yes",
      "modified_by" : {
        "user_id" : "system",
        "user_name" : "System",
        "ccbId" : "system"
      },
      "id" : "1240270447941820417",
      "state" : "In use",
      "created_date" : "1773633117894",
      "category" : "CR",
      "status" : {
        "name" : "Approved",
        "code" : "Approved"
      },
      "cos" : [ {
        "region" : "xx-xx-xx",
        "category" : "CO",
        "title" : "IR-Three Types of Reviews",
        "status" : "Approved",
        "number" : "IR20260316368700",
        "co2cr" : "1240270447941820417",
        "co2br" : "",
        "co2gr" : "",
        "id" : "1240270447476252673",
        "type" : "associate_issue",
        "state" : "In use",
        "before_change" : "{\"view\":{\"plan_pi\":null}}",
        "after_change" : "{\"view\":{\"plan_pi\":{\"id\":\"1145370903077498880\",\"type\":\"plan\",\"title\":\"R111\",\"category\":\"PI\",\"description\":\"Change the modification method\",\"state\":\"In use\",\"status\":{\"display_value\":\"Processing\",\"code\":\"going\"},\"children\":[{\"id\":\"1145372554479521793\",\"type\":\"plan\",\"title\":\"S11\",\"category\":\"Iteration\",\"state\":\"In use\",\"status\":{\"display_value\":\"Processing\",\"code\":\"going\"},\"origin_id\":\"1145372554479521793\",\"domain_id\":\"1145370089831313408\",\"display_value\":\"S11\",\"created_by\":\"a360371833bf4c558f796fd707b44daf\",\"modified_by\":\"a360371833bf4c558f796fd707b44daf\",\"owner\":\"a360371833bf4c558f796fd707b44daf\",\"modified_date\":\"1768811839251\",\"plan_start_date\":\"1750953600000\",\"plan_end_date\":\"1751644799999\",\"created_date\":\"1751007696000\",\"parent_id\":\"1145370903077498880\",\"downstream_plans\":[],\"domain\":{\"id\":\"1145370089831313408\",\"name\":\"IPD-bugfix-M1-0627 Association Map\",\"title\":\"IPD-bugfix-M1-0627 Association Map\",\"project_id\":\"de7115f62a96485b8ceaac6e68c701c4\",\"parent_id\":null,\"category\":\"Project\",\"created_by\":\"a360371833bf4c558f796fd707b44daf\",\"model_id\":\"10001\",\"children\":[],\"project_template_id\":\"10001\",\"category_template_id\":\"10001\",\"category_template_name\":null,\"feature_template_id\":\"10001\",\"feature_template_name\":null,\"is_managed_by_tenant\":false,\"is_locked\":false},\"collaboration_count\":0},{\"id\":\"1190972733488144385\",\"type\":\"plan\",\"title\":\"S-Baselined\",\"category\":\"Iteration\",\"state\":\"In use\",\"status\":{\"display_value\":\"Processing\",\"code\":\"going\"},\"origin_id\":\"1190972733488144385\",\"domain_id\":\"1145370089831313408\",\"display_value\":\"S-Baselined\",\"created_by\":\"a360371833bf4c558f796fd707b44daf\",\"modified_by\":\"a360371833bf4c558f796fd707b44daf\",\"owner\":\"a360371833bf4c558f796fd707b44daf\",\"modified_date\":\"1761897680953\",\"plan_start_date\":\"1750953600000\",\"plan_end_date\":\"1752249599999\",\"created_date\":\"1761879626862\",\"parent_id\":\"1145370903077498880\",\"baseline\":\"baselined\",\"downstream_plans\":[],\"domain\":{\"id\":\"1145370089831313408\",\"name\":\"IPD-bugfix-M1-0627 Association Map\",\"title\":\"IPD-bugfix-M1-0627 Association Map\",\"project_id\":\"de7115f62a96485b8ceaac6e68c701c4\",\"parent_id\":null,\"category\":\"Project\",\"created_by\":\"a360371833bf4c558f796fd707b44daf\",\"model_id\":\"10001\",\"children\":[],\"project_template_id\":\"10001\",\"category_template_id\":\"10001\",\"category_template_name\":null,\"feature_template_id\":\"10001\",\"feature_template_name\":null,\"is_managed_by_tenant\":false,\"is_locked\":false},\"collaboration_count\":0}],\"origin_id\":\"1145370903077498880\",\"domain_id\":\"1145370089831313408\",\"display_value\":\"R111\",\"created_by\":\"a360371833bf4c558f796fd707b44daf\",\"modified_by\":\"a360371833bf4c558f796fd707b44daf\",\"owner\":\"a360371833bf4c558f796fd707b44daf\",\"modified_date\":\"1773458839243\",\"plan_start_date\":\"1750953600000\",\"plan_end_date\":\"1752249599999\",\"created_date\":\"1751007303000\",\"baseline\":\"baselined\",\"downstream_plans\":[],\"domain\":{\"id\":\"1145370089831313408\",\"name\":\"IPD-bugfix-M1-0627 Association Map\",\"title\":\"IPD-bugfix-M1-0627 Association Map\",\"project_id\":\"de7115f62a96485b8ceaac6e68c701c4\",\"parent_id\":null,\"category\":\"Project\",\"created_by\":\"a360371833bf4c558f796fd707b44daf\",\"model_id\":\"10001\",\"children\":[],\"project_template_id\":\"10001\",\"category_template_id\":\"10001\",\"category_template_name\":null,\"feature_template_id\":\"10001\",\"feature_template_name\":null,\"is_managed_by_tenant\":false,\"is_locked\":false},\"collaboration_count\":0}},\"execute\":{\"plan_pi\":\"1145370903077498880\"},\"snapshot\":{\"develop_owner\":null,\"parent_status\":\"no\",\"type\":\"requirement\",\"plan_test_end_date\":null,\"number\":\"IR20260316368700\",\"convolution_actual_hours\":null,\"path\":\"/1240258003525734400\",\"workload_man_day\":null,\"children\":null,\"c7395285812113928192\":null,\"id\":\"1240258003525734400\",\"state\":\"In use\",\"need_break\":{\"id\":\"1145370090383777806\",\"field_id\":\"10164\",\"display_value\":\"Yes\",\"value\":\"yes\",\"code\":\"yes\",\"value_py\":\"yes\",\"sequence\":1.0,\"level\":1,\"domain_id\":\"1145370089831313408\",\"belong_definition_type\":\"5\"},\"collaborative_history\":null,\"c7413076264967385088\":null,\"c7323444293265399808\":null,\"baseline\":{\"id\":\"1145370090379583505\",\"field_id\":\"10106\",\"display_value\":\"Baselined\",\"value\":\"baselined\",\"code\":\"baselined\",\"value_py\":\"baselined\",\"sequence\":2.0,\"level\":1,\"domain_id\":\"1145370089831313408\",\"belong_definition_type\":\"5\"},\"priority\":null,\"break_status\":{\"id\":\"1145370090379583513\",\"field_id\":\"10253\",\"display_value\":\"Not broken down\",\"value\":\"undecomposed\",\"code\":\"undecomposed\",\"value_py\":\"undecomposed\",\"sequence\":2.0,\"level\":1,\"domain_id\":\"1145370089831313408\",\"belong_definition_type\":\"5\"},\"assignee\":{\"user_id\":\"a360371833bf4c558f796fd707b44daf\",\"user_name\":\"devcloud_devcloud_xxx_01\",\"domain_id\":\"4e919d73499648e3b0292cd3cbef806a\",\"nick_name\":\"fortest1-devuc\",\"role_id\":\"64a130fe0a4b4bb4921768a5b327a30a,66dcdb43ec68486190d48d65d853fb3b\",\"role_name\":\"Project manager,Project admin\",\"role_alias_name\":\"Project manager,Project admin\",\"role_code\":\"Project manager,project_admin\"},\"inherit_button\":\"hide\",\"status\":{\"id\":\"1145370090404749335\",\"belonging\":\"START\",\"space_id\":\"1145370089831313408\",\"name\":\"Initial\",\"code\":\"Start\",\"definition_type\":\"5\",\"belong_definition_type\":3,\"display_value\":\"Initial\",\"position\":1,\"displayable\":1,\"editable\":1,\"deletable\":1,\"mutable\":1,\"title_py\":\"cs\",\"created_by\":\"a360371833bf4c558f796fd707b44daf\",\"created_date\":\"1751007109499\",\"modified_date\":\"1751007109499\",\"modified_by\":\"a360371833bf4c558f796fd707b44daf\",\"linkage_node_fields\":false},\"plan_pi\":null,\"tenant_id\":\"4e919d73499648e3b0292cd3cbef806a\",\"c7256156771560255488\":null,\"c7394937176004878336\":null,\"plan_dev_end_date\":null,\"c7367371615904141312\":null,\"plan_end_date\":null,\"cascade_delete\":\"none\",\"c7397173411921358848\":null,\"issue_opinion_id\":null,\"modified_by\":{\"user_id\":\"c533da3e53244b589e7175bb766859ac\",\"user_name\":\"xiaoxionghui001\",\"domain_id\":\"4e919d73499648e3b0292cd3cbef806a\",\"nick_name\":\"xiaoxionghuiAlias\",\"role_id\":\"64a130fe0a4b4bb4921768a5b327a30a\",\"role_name\":\"Project manager\",\"role_alias_name\":\"Project manager\",\"role_code\":\"Project manager\"},\"closed_flag\":null,\"c7405050472057921536\":null,\"collaborative_status\":[],\"position_float\":\"9999999849.9227280000\",\"domain_id\":{\"id\":\"1145370089831313408\",\"name\":\"IPD-bugfix-M1-0627 Association Map\",\"title\":\"IPD-bugfix-M1-0627 Association Map\",\"project_id\":\"de7115f62a96485b8ceaac6e68c701c4\",\"parent_id\":\"\",\"category\":\"Project\",\"created_by\":\"a360371833bf4c558f796fd707b44daf\",\"model_id\":\"10001\",\"children\":[],\"project_template_id\":10001,\"category_template_id\":10001,\"category_template_name\":\"\",\"feature_template_id\":10001,\"feature_template_name\":\"\",\"is_managed_by_tenant\":false,\"is_locked\":false},\"c7252057567561654272\":null,\"stay_days\":0,\"ir2feature\":\"\",\"related_network_security\":{\"id\":\"1145370090379583493\",\"field_id\":\"10258\",\"display_value\":\"No\",\"value\":\"no\",\"code\":\"no\",\"value_py\":\"no\",\"sequence\":2.0,\"level\":1,\"domain_id\":\"1145370089831313408\",\"belong_definition_type\":\"5\"},\"assigned_cc\":null,\"workitem2label\":null,\"close_time\":null,\"modified_date\":1773632926361,\"created_by\":{\"user_id\":\"a360371833bf4c558f796fd707b44daf\",\"user_name\":\"devcloud_devcloud_xxx_01\",\"domain_id\":\"4e919d73499648e3b0292cd3cbef806a\",\"nick_name\":\"fortest1-devuc\",\"role_id\":\"64a130fe0a4b4bb4921768a5b327a30a,66dcdb43ec68486190d48d65d853fb3b\",\"role_name\":\"Project manager,Project admin\",\"role_alias_name\":\"Project manager,Project admin\",\"role_code\":\"Project manager,project_admin\"},\"status_modified_date\":1773630150993,\"important\":null,\"collaboratives\":null,\"parent_id\":null,\"business_domain\":{\"id\":\"1169667958654611460\",\"field_id\":\"10024\",\"display_value\":\"Software\",\"value\":\"software\",\"code\":\"software\",\"value_py\":\"rj\",\"sequence\":0.0,\"level\":1,\"domain_id\":\"1145370089831313408\",\"belong_definition_type\":\"5\"},\"region\":\"xx-xx-xx\",\"c7413122556540137472\":null,\"link\":\"\",\"is_suspended\":null,\"change_status\":null,\"title\":\"IR-Three Types of Reviews\",\"sum_workload_man_day\":null,\"c7302932287538208768\":null,\"ir2rr\":\"\",\"plan_start_date\":null,\"convolution_plan_hours\":null,\"category_layer_id\":\"10001\",\"no_break_reason\":null,\"submitted_by\":[{\"user_id\":\"a360371833bf4c558f796fd707b44daf\",\"user_name\":\"devcloud_devcloud_xxx_01\",\"domain_id\":\"4e919d73499648e3b0292cd3cbef806a\",\"nick_name\":\"fortest1-devuc\",\"role_id\":\"64a130fe0a4b4bb4921768a5b327a30a,66dcdb43ec68486190d48d65d853fb3b\",\"role_name\":\"Project manager,Project admin\",\"role_alias_name\":\"Project manager,Project admin\",\"role_code\":\"Project manager,project_admin\"}],\"test_owner\":null,\"issue_review_id\":null,\"setup\":true,\"c7410596070968356864\":null,\"created_date\":1773630150899,\"category\":\"IR\"}}",
        "modified_by" : "c533da3e53244b589e7175bb766859ac",
        "modified_date" : "1773633151706",
        "created_by" : "a360371833bf4c558f796fd707b44daf",
        "created_date" : "1773633117786",
        "tenant_id" : "4e919d73499648e3b0292cd3cbef806a",
        "domain_id" : "1145370089831313408",
        "issue_category" : "IR",
        "issue_id" : "1240258003525734400",
        "change_type" : "ModifyPlan",
        "reviewer" : [ ],
        "approver" : [ "c533da3e53244b589e7175bb766859ac" ],
        "rounds" : "1",
        "last_round_result" : "Approved",
        "__placeholder_flag" : false
      } ],
      "ccbs" : [ {
        "user_id" : "c533da3e53244b589e7175bb766859ac",
        "user_name" : "xiaoxionghui001",
        "domain_id" : "4e919d73499648e3b0292cd3cbef806a",
        "nick_name" : "Alias",
        "role_id" : "64a130fe0a4b4bb4921768a5b327a30a",
        "role_name" : "Project manager"
      } ],
      "ccb_description" : "ok",
      "approval_time" : "1773633151000"
    }, {
      "approver" : "c533da3e53244b589e7175bb766859ac",
      "cr2co" : "",
      "description" : "<p><strong>[BR Background]</strong></p><p><br></p><p><strong>[BR Benefits]</strong></p><p><br></p><p><strong>[BR Details]</strong></p><br>",
      "closed_time" : "1773632926000",
      "type" : "process_instance",
      "title" : "fortest1-devuc baseline review-initial requirement-verifying three types of reviews associated with an IR",
      "modified_date" : "1773632926412",
      "created_by" : {
        "user_id" : "a360371833bf4c558f796fd707b44daf",
        "user_name" : "devcloud_devcloud_xxx_01",
        "domain_id" : "4e919d73499648e3b0292cd3cbef806a",
        "nick_name" : "fortest1-devuc",
        "role_id" : "64a130fe0a4b4bb4921768a5b327a30a,66dcdb43ec68486190d48d65d853fb3b",
        "role_name" : "Project admin,Project manager"
      },
      "handing_cos" : "",
      "security_level" : "",
      "domain_id" : {
        "id" : "1145370089831313408",
        "state" : "In use",
        "title" : "IPD-bugfix-M1-0627 Association Map",
        "project_id" : "de7115f62a96485b8ceaac6e68c701c4",
        "category" : "Project",
        "created_by" : "a360371833bf4c558f796fd707b44daf",
        "modified_by" : "a360371833bf4c558f796fd707b44daf",
        "tenant_id" : "4e919d73499648e3b0292cd3cbef806a",
        "model_id" : "10001",
        "project_template_id" : "10001",
        "category_template_id" : "10001",
        "feature_template_id" : "10001"
      },
      "number" : "BR20260316368701",
      "need_approval" : "yes",
      "modified_by" : {
        "user_id" : "system",
        "user_name" : "System",
        "ccbId" : "system"
      },
      "id" : "1240259544743710721",
      "state" : "In use",
      "created_date" : "1773630518367",
      "category" : "BR",
      "status" : {
        "code" : "Passed",
        "name" : "Approved"
      },
      "ccbs" : [ {
        "user_id" : "c533da3e53244b589e7175bb766859ac",
        "user_name" : "xiaoxionghui001",
        "domain_id" : "4e919d73499648e3b0292cd3cbef806a",
        "nick_name" : "Alias",
        "role_id" : "64a130fe0a4b4bb4921768a5b327a30a",
        "role_name" : "Project manager"
      } ],
      "ccb_description" : "ok",
      "approval_time" : "1773632926000"
    } ]
  }
}

Status code: 400

{
  "error_code" : "PM.02174103",
  "error_msg" : "No permission."
}

SDK Sample Code

The SDK sample code is as follows.

Java

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.huaweicloud.sdk.test;

import com.huaweicloud.sdk.core.auth.ICredential;
import com.huaweicloud.sdk.core.auth.BasicCredentials;
import com.huaweicloud.sdk.core.exception.ConnectionException;
import com.huaweicloud.sdk.core.exception.RequestTimeoutException;
import com.huaweicloud.sdk.core.exception.ServiceResponseException;
import com.huaweicloud.sdk.projectman.v4.region.ProjectManRegion;
import com.huaweicloud.sdk.projectman.v4.*;
import com.huaweicloud.sdk.projectman.v4.model.*;


public class ListIpdReviewFormsByIssueIdSolution {

    public static void main(String[] args) {
        // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
        // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
        String ak = System.getenv("CLOUD_SDK_AK");
        String sk = System.getenv("CLOUD_SDK_SK");

        ICredential auth = new BasicCredentials()
                .withAk(ak)
                .withSk(sk);

        ProjectManClient client = ProjectManClient.newBuilder()
                .withCredential(auth)
                .withRegion(ProjectManRegion.valueOf("<YOUR REGION>"))
                .build();
        ListIpdReviewFormsByIssueIdRequest request = new ListIpdReviewFormsByIssueIdRequest();
        request.withProjectId("{project_id}");
        request.withIssueId("{issue_id}");
        try {
            ListIpdReviewFormsByIssueIdResponse response = client.listIpdReviewFormsByIssueId(request);
            System.out.println(response.toString());
        } catch (ConnectionException e) {
            e.printStackTrace();
        } catch (RequestTimeoutException e) {
            e.printStackTrace();
        } catch (ServiceResponseException e) {
            e.printStackTrace();
            System.out.println(e.getHttpStatusCode());
            System.out.println(e.getRequestId());
            System.out.println(e.getErrorCode());
            System.out.println(e.getErrorMsg());
        }
    }
}

Python

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# coding: utf-8

import os
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkprojectman.v4.region.projectman_region import ProjectManRegion
from huaweicloudsdkcore.exceptions import exceptions
from huaweicloudsdkprojectman.v4 import *

if __name__ == "__main__":
    # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
    # In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
    ak = os.environ["CLOUD_SDK_AK"]
    sk = os.environ["CLOUD_SDK_SK"]

    credentials = BasicCredentials(ak, sk)

    client = ProjectManClient.new_builder() \
        .with_credentials(credentials) \
        .with_region(ProjectManRegion.value_of("<YOUR REGION>")) \
        .build()

    try:
        request = ListIpdReviewFormsByIssueIdRequest()
        request.project_id = "{project_id}"
        request.issue_id = "{issue_id}"
        response = client.list_ipd_review_forms_by_issue_id(request)
        print(response)
    except exceptions.ClientRequestException as e:
        print(e.status_code)
        print(e.request_id)
        print(e.error_code)
        print(e.error_msg)

Go

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package main

import (
	"fmt"
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/basic"
    projectman "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/projectman/v4"
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/projectman/v4/model"
    region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/projectman/v4/region"
)

func main() {
    // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
    // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
    ak := os.Getenv("CLOUD_SDK_AK")
    sk := os.Getenv("CLOUD_SDK_SK")

    auth, err := basic.NewCredentialsBuilder().
        WithAk(ak).
        WithSk(sk).
        SafeBuild()

    if err != nil {
        fmt.Println(err)
        return
    }

    hcClient, err := projectman.ProjectManClientBuilder().
         WithRegion(region.ValueOf("<YOUR REGION>")).
         WithCredential(auth).
         SafeBuild()


    if err != nil {
        fmt.Println(err)
        return
    }

    client := projectman.NewProjectManClient(hcClient)

    request := &model.ListIpdReviewFormsByIssueIdRequest{}
	request.ProjectId = "{project_id}"
	request.IssueId = "{issue_id}"
	response, err := client.ListIpdReviewFormsByIssueId(request)
	if err == nil {
        fmt.Printf("%+v\n", response)
    } else {
        fmt.Println(err)
    }
}

More

For SDK sample code of more programming languages, see the Sample Code tab in API Explorer. SDK sample code can be automatically generated.

Status Codes

Status Code

Description

200

Successful response to the request for querying the list of change reviews associated with a work item.

400

Failed response to the request for querying the list of change reviews associated with a work item.

Error Codes

See Error Codes.