Exporting Work Items (V2)
Function
This API is used to export work items (V2).
Calling Method
For details, see Calling APIs.
Authorization Information
No identity policy-based permission required for calling this API.
URI
POST /v2/issues/export-reqs-new
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 The value contains 10 to 32,768 characters. Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| projectUUId | No | String | Definition 32-character UUID of a project, which uniquely identifies a project. Obtain the value of this parameter from the project_id field in the response body of the Querying the Project List API. Constraints A string of 32 characters consisting of digits and letters. Range N/A Default Value N/A |
| fields | No | String | Definition Column fields to be exported. Use commas (,) to separate values. Constraints N/A Range Default Value N/A |
| export_child | No | Boolean | Definition Whether to export child work items. Constraints N/A Range Default Value N/A |
| type | No | String | Definition Structure type of the exported work item. Constraints N/A Range Default Value N/A |
| time_zone | No | Integer | Definition: Time zone, for example, 8. Constraints: N/A Value range: N/A Default value: N/A |
| page_no | No | Integer | Definition: Page index. Constraints: N/A Value range: Minimum value: 0. Maximum value: 9,999,999,999. Default value: N/A |
| page_size | No | Integer | Definition: Page size. Constraints: N/A Value range: Minimum value: 0. Maximum value: 9,999,999,999. Default value: N/A |
| export_all | No | Boolean | Definition Whether to export all fields. Constraints N/A Range Default Value N/A |
| tracker_id | No | String | Definition Work item type ID. Constraints N/A Range Default Value N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| - | File | Definition: File. Value range: N/A |
Example Requests
POST https://{endpoint}/v2/issues/export-reqs-new?_=1753102328713
{
"projectUUId" : "d00fd603ddf64115939e7d3609d6cb05",
"fields" : "id,subject,closed_on,status,assigned_to,start_date,due_date,priority,created_on,actual_work_hours,done_ratio,tracker,module,order,severity,parent_issue,domain,releaseDev,expected_work_hours,fixed_version,findReleaseDev,env,story_point,tag_id,description,author,assigned_cc,developer,updated_on",
"export_child" : "false",
"type" : "tree",
"time_zone" : 8,
"page_no" : 1,
"page_size" : 2000,
"export_all" : "false",
"tracker_id" : "5,6,7,2,3"
} Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | Response to a successful request for exporting work items. |
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