ExportInsightWorkitemVersion
Queries the workitem_version table data for a specified organization in DevOps Insight.
Operation description
The DevOps Insight data export API is available only to Premium Edition customers. To learn more about the features of Yunxiao Premium Edition, visit https://help.aliyun.com/document_detail/173288.html.
Try it now
Test
RAM authorization
Request syntax
POST /organization/{organizationId}/data/workitemVersions HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The organization ID. It is a string that can be obtained from the Yunxiao access URL, such as https://devops.aliyun.com/organization/#{organizationId}. |
61db9af2148974246bexxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| startTime |
string |
Yes |
The start time. The interval between the start time and the end time cannot exceed one year. Format: YYYY-MM-DD HH:mm:ss. |
2024-05-01 00:00:00 |
| endTime |
string |
Yes |
The end time. The interval between the start time and the end time cannot exceed one year. Format: YYYY-MM-DD HH:mm:ss. |
2024-06-01 00:00:00 |
| nextToken |
string |
No |
The token for the next page. |
1 |
| maxResults |
integer |
No |
The maximum number of results to return. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| totalCount |
integer |
The total number of records. |
100 |
| nextToken |
string |
The token for the next page. A value of null indicates that no more pages are available. |
2 |
| maxResults |
integer |
The number of records returned. |
10 |
| result |
array<object> |
The returned results. |
|
|
object |
workitem_version |
||
| id |
integer |
The auto-increment ID of the record. |
648131 |
| gmtCreate |
integer |
The time when the record was created. |
1704251228000 |
| gmtModified |
integer |
The time when the record was updated. |
1704251228000 |
| identifier |
string |
The unique identifier. |
7ba6e8261b973c976df76b7de1 |
| isDeleted |
string |
Indicates whether the record is deleted. Valid values: Y and N. |
N |
| organizationId |
string |
The ID of the organization. |
61db9af2148974246bexxxx |
| name |
string |
The name of the version. |
Version 0501 |
| gmtStart |
integer |
The start time of the version. |
1704297600000 |
| gmtPublish |
integer |
The release time of the version. |
1704902400000 |
| status |
integer |
The status of the version. Valid values: 10 (TODO), 50 (DOING), and 100 (ARCHIVED). |
100 |
| lockStatus |
integer |
Indicates whether the version is locked. |
0 |
| targetType |
string |
The type of the workspace to which the version belongs. |
Project |
| targetId |
string |
The ID of the workspace to which the version belongs. |
7eee44ec7f699d4e6980faxxxx |
| source |
string |
The source of the version. Valid values: projex and teambition. |
projex |
Examples
Success response
JSON format
{
"totalCount": 100,
"nextToken": "2",
"maxResults": 10,
"result": [
{
"id": 648131,
"gmtCreate": 1704251228000,
"gmtModified": 1704251228000,
"identifier": "7ba6e8261b973c976df76b7de1",
"isDeleted": "N",
"organizationId": "61db9af2148974246bexxxx",
"name": "版本0501",
"gmtStart": 1704297600000,
"gmtPublish": 1704902400000,
"status": 100,
"lockStatus": 0,
"targetType": "Project",
"targetId": "7eee44ec7f699d4e6980faxxxx",
"source": "projex"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.