ExportWorkitemActivity

Updated at:

Retrieves the data of the workitem_activity table for a specified organization in Efficiency Insight.

Operation description

The Efficiency Insight data export API is available only to Premium Edition customers. To learn more about the features of Apsara Devops Premium Edition, visit https://help.aliyun.com/document_detail/173288.html.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /organization/{organizationId}/data/workitemActivities 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 Apsara Devops 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. Specify the time in the YYYY-MM-DD HH:mm:ss format.

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. Specify the time in the YYYY-MM-DD HH:mm:ss format.

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. Maximum value: 10000.

10

Response elements

Element

Type

Description

Example

object

Schema of Response

totalCount

integer

The total number of entries.

100

nextToken

string

The token for the next page. A value of null indicates that no more pages exist.

2

maxResults

integer

The number of returned entries.

10

result

array<object>

The returned results.

object

workitem_activity

id

integer

The auto-increment ID of the record.

4406380356

gmtEvent

integer

The time when the event occurred.

1714961337000

identifier

string

The unique identifier.

254662353

organizationId

string

The organization ID.

61db9af2148974246bexxxx

newValue

string

The new value.

1

oldValue

string

The old value.

2

projectId

string

The project ID.

2a62349afcbef7f23d8f31xxxx

source

string

The source.

projex

type

string

The event type.

workitem.update.priority

workitemId

string

The work item ID.

ec69eae498acce08ff7260xxxx

Examples

Success response

JSON format

{
  "totalCount": 100,
  "nextToken": "2",
  "maxResults": 10,
  "result": [
    {
      "id": 4406380356,
      "gmtEvent": 1714961337000,
      "identifier": "254662353",
      "organizationId": "61db9af2148974246bexxxx",
      "newValue": "1",
      "oldValue": "2",
      "projectId": "2a62349afcbef7f23d8f31xxxx",
      "source": "projex",
      "type": "workitem.update.priority",
      "workitemId": "ec69eae498acce08ff7260xxxx"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.