ExportInsightWorkTime

Updated at:

Queries the workitem_time table data for a specified organization in DevOps Insights.

Operation description

The DevOps Insights 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

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/workTimes 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. 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.

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 are available.

2

maxResults

integer

The number of entries returned.

10

result

array<object>

The returned results.

object

work_time

id

integer

The auto-increment ID of the record.

49506082

gmtCreate

integer

The time when the record was created.

1714978610000

gmtModified

integer

The time when the record was updated.

1714978610000

identifier

string

The unique identifier.

da70ce5824231ca3c04ef808e0

isDeleted

string

Indicates whether the record is deleted. Valid values: Y and N.

N

organizationId

string

The organization ID.

61db9af2148974246bexxxx

recorderId

string

The ID of the user who logged the work hours.

65659358c319d2a0f912xxxx

source

string

The source. Valid values: Projex and Teambition.

projex

value

integer

The logged duration, in hours.

120

workitemId

string

The ID of the work item.

17bc1cf9a037a15fc9ce76xxxx

projectId

string

The project ID.

09670872890eb1a0bb998exxxx

type

string

The category of the actual work hours.

R&D

gmtStart

integer

The start time of the actual work hours.

1714924800000

gmtEnd

integer

The end time of the actual work hours.

1715011199999

uuid

string

The unique identifier of the work hours after splitting.

000000000cd82d3df50d5e5a5c094094fd7b4461

actualValue

number

The value of the work hours after splitting, in hours.

120

description

string

The description of the work hours.

Description

Examples

Success response

JSON format

{
  "totalCount": 100,
  "nextToken": "2",
  "maxResults": 10,
  "result": [
    {
      "id": 49506082,
      "gmtCreate": 1714978610000,
      "gmtModified": 1714978610000,
      "identifier": "da70ce5824231ca3c04ef808e0",
      "isDeleted": "N",
      "organizationId": "61db9af2148974246bexxxx",
      "recorderId": "65659358c319d2a0f912xxxx",
      "source": "projex",
      "value": 120,
      "workitemId": "17bc1cf9a037a15fc9ce76xxxx",
      "projectId": "09670872890eb1a0bb998exxxx",
      "type": "研发",
      "gmtStart": 1714924800000,
      "gmtEnd": 1715011199999,
      "uuid": "000000000cd82d3df50d5e5a5c094094fd7b4461",
      "actualValue": 120,
      "description": "描述信息"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.