Updating Work Items in Batches
Function
Batch update work items. A maximum of 50 work items can be updated at a time.
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
PUT /v1/ipdprojectservice/projects/{project_id}/issues/batch
| 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 |
|---|---|---|---|
| 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 |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | Yes | Array of strings | Definition IDs of the work items to be updated, which can be obtained from the API for performing advanced query of work items. The value of the id field in the response body is the work item ID. Constraints A string of 18 to 19 digits (corresponding to the id field of a work item). |
| attribute | Yes | IssueUpdateAttribute object | Definition Work item updates. Constraints N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| description | No | String | Definition Work item description. You can obtain the value from the API for querying tree-shaped work items. The value is description in the response body. Constraints N/A Range 1 to 500,000 characters. Default Value N/A |
| parent_id | No | String | Definition Parent work item ID. You can obtain the value from the API for querying tree-shaped work items. The value is parent_id in the response body. Constraints N/A Range A string of 18 to 19 digits. Default Value N/A |
| status | No | String | Definition Work item status code. Obtain the value from the Querying the Work Item Status API. The value is code in the response body. Constraints N/A Range 2 to 32 characters. Default Value N/A |
| assignee | No | UserUpdateAttribute object | Definition Work item owner. Constraints N/A |
| assigned_cc | No | Array of UserUpdateAttribute objects | Definition Cc recipient of a work item. Multiple Cc recipients are supported. The array element is a UserUpdateAttribute object. Constraints A work item can be copied to a maximum of 50 recipients. |
| plan_end_date | No | String | Definition Planned end date of a work item, which is a Unix timestamp (unit: millisecond). Constraints N/A Range N/A Default Value N/A |
| plan_dev_end_date | No | String | Definition Planned development end date of a work item, which is a Unix timestamp (unit: millisecond). Constraints N/A. Range N/A. Default Value N/A. |
| workload | No | String | Definition Planned workloads of a work item. Constraints The value is accurate to one decimal place. Range 0-999999999.9 Default Value N/A |
| link | No | String | Definition IDs of associated items of a work item. Constraints Multiple associated items are separated by commas (,). A work item supports a maximum of 50 associated items. Range 0 to 2,048 characters. Default Value N/A |
| labels | No | Array of LabelEntity objects | Definition Work item label. The array element is a LabelEntity object. Constraints N/A Range 0 to 50 elements. Each element is a LabelEntity object. Default Value N/A |
| custom_fields | No | Array of FieldCodeValuePair objects | Definition Work item custom field mapping. System fields added by users are also listed here. The structure is {"code":"field code","value":"field value"}. Each array element is a FieldCodeValuePair object. Constraints N/A Range 0 to 200 elements. Each element is a FieldCodeValuePair object. Default Value N/A |
| ir2feature | No | String | Definition Association field of IRs and SFs. Constraints This field can be set for IRs. Range N/A Default Value N/A |
| need_break | No | String | Definition Whether a work item needs to be broken down. Constraints This field is available only for work item types that can be broken down. Range Default Value N/A |
| baseline | No | String | Definition Work item baseline status. Constraints N/A Range Default Value N/A |
| priority | No | String | Definition Work item priority. Some work items have this field. Constraints N/A Range Default Value N/A |
| related_network_security | No | String | Definition Whether network security is involved. Constraints This field is available only for R&D requirement work items. Range Default Value N/A |
| business_domain | No | String | Definition Domain field. Constraints N/A Range Default Value N/A |
| plan_pi | No | String | Definition Work item release plan ID. The field is the fixing release plan ID for bugs. You can query the plan list by calling the API for querying the release/sprint plan list. The id field of the object with category=PI in PlanVO in the returned parameters is the sprint plan ID. Constraints N/A. Range A string of 18 to 19 digits. Default Value N/A. |
| plan_iteration | No | String | Definition ID of the sprint plan in which the work item is completed. The field is the fixing sprint plan ID for bugs. You can query the plan list by calling the API for querying the release/sprint plan list. The id field of the object with category=Iteration in PlanVO in the returned parameters is the sprint plan ID. Constraints A string of 18 to 19 digits. Range N/A Default Value N/A |
| no_break_reason | No | String | Definition Reason for no breakdown required. Constraints This field is available when the value of need_break is no. Range 0 to 512 characters. Default Value N/A |
| submitted_by | No | Array of UserUpdateAttribute objects | Definition Work item proposer. The array element is a UserUpdateAttribute object. Constraints N/A |
| ir2rr | No | String | Definition ID of the RR associated with the IR. Obtain the value from the API for querying work items or querying tree-shaped work items. The value of id in the response body is the work item ID. Constraints Use commas (,) to separate multiple associated item IDs. Range 0 to 1,024 characters. Default Value N/A |
| feature_set | No | String | Definition Feature set ID. Obtain the value of this parameter using the API for querying feature sets. The value of id in the response body is the feature set ID. Constraints N/A. Range A string of 18 to 19 digits. Default Value N/A. |
| expected_repair_date | No | String | Definition Expected fixing time. This field is available only for bugs. The value is a Unix timestamp, in milliseconds. Constraints N/A Range 11 to 19 characters. Default Value N/A |
| found_pi | No | String | Definition ID of the release plan where a bug is found. This field is available only for bugs. You can query the plan list by calling the API for querying the release/sprint plan list. The id field of the object with category=PI in PlanVO in the returned parameters is the sprint plan ID. Constraints N/A Range A string of 18 to 19 digits. Default Value N/A |
| found_iteration | No | String | Definition ID of the sprint plan where a bug is found. This field is available only for bugs. You can query the plan list by calling the API for querying the release/sprint plan list. The id field of the object with category=Iteration in PlanVO in the returned parameters is the sprint plan ID. Constraints N/A Range A string of 18 to 19 digits. Default Value N/A |
| reason_analysis | No | String | Definition Reason analysis. Constraints This field is available only for bugs. Range 0 to 50,000 characters. Default Value N/A |
| repair_solution | No | String | Definition Fix solution. This field is available only for bugs. Constraints N/A Range 0 to 50,000 characters. Default Value N/A |
| test_report | No | String | Definition Test report. This field is available only for bugs. Constraints N/A Range 0 to 50,000 characters. Default Value N/A |
| sys_no_repair_reason | No | String | Definition Reason why rectification is not required. This field is available only for bugs. Constraints N/A Range 0 to 50,000 characters. Default Value N/A |
| sys_activation_reason | No | String | Definition Activation reason. This field is available only for bugs. Constraints N/A Range 0 to 50,000 characters. Default Value N/A |
| sys_return_reason | No | String | Definition Reason for return. This field is available only for bugs. Constraints N/A Range 0 to 50,000 characters. Default Value N/A |
| test_failures_times | No | Integer | Definition Number of times that regression failed. This field is available only for bugs. Constraints N/A Range 0–999999 Default Value N/A |
| close_type | No | String | Definition Closure type. Constraints N/A Range Default Value N/A |
| plan_owner | No | UserUpdateAttribute object | Definition Work item planning owner, responsible for work item planning and plan development. Constraints N/A |
| doing_owner | No | UserUpdateAttribute object | Definition Work item implementation owner, responsible for the specific implementation and execution of work items. Constraints N/A |
| delivered_owner | No | UserUpdateAttribute object | Definition Work item delivery owner, responsible for the delivery and release of work items. Constraints N/A |
| checking_owner | No | UserUpdateAttribute object | Definition Work item acceptance owner, responsible for the final acceptance of work items. Constraints N/A |
| test_owner | No | UserUpdateAttribute object | Definition Work item testing owner, responsible for testing and verifying work items. Constraints N/A |
| develop_owner | No | UserUpdateAttribute object | Definition Work item development owner, responsible for developing and implementing work items. Constraints N/A |
| processing_owner | No | UserUpdateAttribute object | Definition Work item processing owner, responsible for the current processing phase of the work item. Constraints N/A |
| fixed_owner | No | UserUpdateAttribute object | Definition Work item fixing owner, responsible for fixing work item problems. Constraints N/A |
| researchanddevelop_owner | No | UserUpdateAttribute object | Definition Work item R&D owner, responsible for the research and development of work items. Constraints N/A |
| analyse_owner | No | UserUpdateAttribute object | Definition Work item analysis owner, responsible for requirement analysis and technical analysis of work items. Constraints N/A |
| plan_start_date | No | String | Definition Planned start time. Planned start date of a work item, which is used for project progress management and scheduling. Constraints N/A Range The value is a timestamp string of 11 to 19 characters, in milliseconds. Default Value N/A |
| expect_delivery_time | No | String | Definition Expected completion time. Expected delivery date of a work item, which is used to track whether the work item is completed on time. Constraints N/A Range The value is a timestamp string of 11 to 19 characters, in milliseconds. Default Value N/A |
| plan_test_end_date | No | String | Definition Planned test end time. Planned test completion date of a bug work item, which is used to track the test progress after the bug is fixed. Constraints This field is valid only for bug work items. Ignore this field for other types of work items. Range The value is a timestamp string of 11 to 19 characters, in milliseconds. Default Value N/A |
| severity | No | String | Definition Severity, which is used to evaluate the impact scope and fixing priority of the bug. Constraints This field is valid only for bug work items. Ignore this field for other types of work items. Range
Default Value N/A |
| promised | No | String | Definition Commitment status. Indicates whether a work item of type RR is committed for delivery. Constraints This field is valid only for RR work items. Ignore this field for other types of work items. Range Default Value N/A |
| recipient | No | Array of UserUpdateAttribute objects | Definition Receiver. The owner of an RR work item, responsible for analyzing and converting requirements. Constraints This field is valid only for RR work items. Ignore this field for other types of work items. |
| sys_no_develop_reason | No | String | Definition Reason why an RR work item does not need to be developed. Constraints This field is valid only for RR work items. Ignore this field for other types of work items. Range 0 to 50,000 characters. Default Value N/A |
| val_feature | No | String | Definition Value feature. Description of the business value feature corresponding to the SF/FE work item, which is used to associate business value with technical implementation. Constraints This field is valid only for SF/FE work items. Ignore this field for other types of work items. Range Default Value N/A |
| function_scene | No | String | Definition Function scenario. Function application scenario description of SF/FE work items, which describes the application scenarios and user stories of the feature. Constraints This field is valid only for SF/FE work items. Ignore this field for other types of work items. Range 0 to 512 characters. Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | No | String | Definition Label ID, which is the value of id in the response body returned by calling the API for querying the label list. Constraints N/A Range A string of 18 to 19 digits. Default Value N/A |
| category_types | No | Array of strings | Definition Code of the work item type to which a label belongs. Constraints N/A Default Value N/A |
| label_type | No | String | Definition Type of the work item to which the label belongs, corresponding to the type field of the work item. The options are as follows. Constraints N/A Range Default Value N/A |
| color | No | String | Definition Label RGB color. Constraints 0 to 16 characters. Range The available color codes and their descriptions are as follows: Default Value N/A |
| title | No | String | Definition Label title. Constraints 1 to 30 characters. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| code | No | String | Definition Code of a custom field of a work item. Obtain the value from the Querying Field Templates API. The value is code in the response body. Constraints 0 to 32 characters. Range N/A Default Value N/A |
| value | No | String | Definition Custom field value of a work item. Constraints Use commas (,) to separate multiple values. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | No | String | Definition User ID. Obtain it by calling the API for querying project members. The value of id in the response message body is the user ID. Constraints N/A Range N/A Default Value N/A |
| name | No | String | Definition Username. Constraints If the id attribute has a value, id is preferentially used to match project members. If the matching fails, name is used for matching. Range 2 to 64 characters. Default Value N/A |
| nick_name | No | String | Definition User alias. Constraints If id and name have values, id and name are preferentially used to match project members. If the matching fails, nick_name is used for matching. Range 2 to 30 characters Default Value N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| result | Array of IssueBatchOperateEntitiesResult objects | Definition Result of batch editing. |
| status | String | Definition Response status. Range |
| message | String | Definition Operation failure cause. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| success | Array of IssueOperateResult objects | Definition Success result. |
| failed | Array of IssueOperateResult objects | Definition Failure result. |
| undeleted_trees | Array of IssueOperateResult objects | Definition Work items that fail to be deleted. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition ID of the changed work item. Range N/A |
| operator | String | Definition ID of the work item changer. Range N/A |
| state | String | Definition Discard flag of a work item. The options are as follows. Range |
| operate_time | String | Definition Work item change time. 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
Updating R&D Requirements in Batches
PUT https://{endpoint}/v1/ipdprojectservice/projects/8e70d806a8f04d018ea6af6b6ffe7b96/issues/batch
{
"id" : [ "957294446158852096", "957315051394478080" ],
"attribute" : {
"category" : "IR",
"priority" : "Low",
"submitted_by" : [ {
"id" : "a360371833bf4c558f796fd707b44daf"
} ],
"labels" : [ {
"id" : "956308025419804673"
}, {
"id" : "956308025419804673"
} ],
"custom_fields" : [ {
"code" : "c7073388365101674496",
"value" : "881467547473321986,881467547473321987"
}, {
"code" : "c7148504958125613056",
"value" : "Custom field of a project."
}, {
"code" : "module",
"value" : "956584293264568320"
}, {
"code" : "c7148512434669625344",
"value" : "956591616891461634"
} ]
}
} Example Responses
Status code: 200
{
"status" : "success",
"result" : [ {
"success" : [ {
"id" : "957294446158852096",
"operator" : "a360371833bf4c558f796fd707b44daf",
"operate_time" : "1706607114000"
}, {
"id" : "957315051394478080",
"operator" : "a360371833bf4c558f796fd707b44daf",
"operate_time" : "1706607114000"
} ],
"failed" : [ ]
} ]
} Status code: 400
{
"error_code" : "PM.02175202",
"error_msg" : "The work item is in change review."
} SDK Sample Code
The SDK sample code is as follows.
Java
Updating R&D Requirements in Batches
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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | 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.*; import java.util.List; import java.util.ArrayList; public class BatchUpdateIpdIssuesSolution { 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(); BatchUpdateIpdIssuesRequest request = new BatchUpdateIpdIssuesRequest(); request.withProjectId("{project_id}"); BatchUpdateIssuesParam body = new BatchUpdateIssuesParam(); List<UserUpdateAttribute> listAttributeSubmittedBy = new ArrayList<>(); listAttributeSubmittedBy.add( new UserUpdateAttribute() .withId("a360371833bf4c558f796fd707b44daf") ); List<FieldCodeValuePair> listAttributeCustomFields = new ArrayList<>(); listAttributeCustomFields.add( new FieldCodeValuePair() .withCode("c7073388365101674496") .withValue("881467547473321986,881467547473321987") ); listAttributeCustomFields.add( new FieldCodeValuePair() .withCode("c7148504958125613056") .withValue("Custom field of a project.") ); listAttributeCustomFields.add( new FieldCodeValuePair() .withCode("module") .withValue("956584293264568320") ); listAttributeCustomFields.add( new FieldCodeValuePair() .withCode("c7148512434669625344") .withValue("956591616891461634") ); List<LabelEntity> listAttributeLabels = new ArrayList<>(); listAttributeLabels.add( new LabelEntity() .withId("956308025419804673") ); listAttributeLabels.add( new LabelEntity() .withId("956308025419804673") ); IssueUpdateAttribute attributebody = new IssueUpdateAttribute(); attributebody.withCategory("IR") .withLabels(listAttributeLabels) .withCustomFields(listAttributeCustomFields) .withPriority("Low") .withSubmittedBy(listAttributeSubmittedBy); List<String> listbodyId = new ArrayList<>(); listbodyId.add("957294446158852096"); listbodyId.add("957315051394478080"); body.withAttribute(attributebody); body.withId(listbodyId); request.withBody(body); try { BatchUpdateIpdIssuesResponse response = client.batchUpdateIpdIssues(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
Updating R&D Requirements in Batches
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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | # 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 = BatchUpdateIpdIssuesRequest() request.project_id = "{project_id}" listSubmittedByAttribute = [ UserUpdateAttribute( id="a360371833bf4c558f796fd707b44daf" ) ] listCustomFieldsAttribute = [ FieldCodeValuePair( code="c7073388365101674496", value="881467547473321986,881467547473321987" ), FieldCodeValuePair( code="c7148504958125613056", value="Custom field of a project." ), FieldCodeValuePair( code="module", value="956584293264568320" ), FieldCodeValuePair( code="c7148512434669625344", value="956591616891461634" ) ] listLabelsAttribute = [ LabelEntity( id="956308025419804673" ), LabelEntity( id="956308025419804673" ) ] attributebody = IssueUpdateAttribute( category="IR", labels=listLabelsAttribute, custom_fields=listCustomFieldsAttribute, priority="Low", submitted_by=listSubmittedByAttribute ) listIdbody = [ "957294446158852096", "957315051394478080" ] request.body = BatchUpdateIssuesParam( attribute=attributebody, id=listIdbody ) response = client.batch_update_ipd_issues(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
Updating R&D Requirements in Batches
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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | 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.BatchUpdateIpdIssuesRequest{} request.ProjectId = "{project_id}" idSubmittedBy:= "a360371833bf4c558f796fd707b44daf" var listSubmittedByAttribute = []model.UserUpdateAttribute{ { Id: &idSubmittedBy, }, } codeCustomFields:= "c7073388365101674496" valueCustomFields:= "881467547473321986,881467547473321987" codeCustomFields1:= "c7148504958125613056" valueCustomFields1:= "Custom field of a project." codeCustomFields2:= "module" valueCustomFields2:= "956584293264568320" codeCustomFields3:= "c7148512434669625344" valueCustomFields3:= "956591616891461634" var listCustomFieldsAttribute = []model.FieldCodeValuePair{ { Code: &codeCustomFields, Value: &valueCustomFields, }, { Code: &codeCustomFields1, Value: &valueCustomFields1, }, { Code: &codeCustomFields2, Value: &valueCustomFields2, }, { Code: &codeCustomFields3, Value: &valueCustomFields3, }, } idLabels:= "956308025419804673" idLabels1:= "956308025419804673" var listLabelsAttribute = []model.LabelEntity{ { Id: &idLabels, }, { Id: &idLabels1, }, } categoryAttribute:= "IR" priorityAttribute:= "Low" attributebody := &model.IssueUpdateAttribute{ Category: &categoryAttribute, Labels: &listLabelsAttribute, CustomFields: &listCustomFieldsAttribute, Priority: &priorityAttribute, SubmittedBy: &listSubmittedByAttribute, } var listIdbody = []string{ "957294446158852096", "957315051394478080", } request.Body = &model.BatchUpdateIssuesParam{ Attribute: attributebody, Id: listIdbody, } response, err := client.BatchUpdateIpdIssues(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 | OK |
| 400 | Error cause. |
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