ListEstimatedEfforts - Get estimated effort details

Updated at:

Queries the estimated effort details for a specified work item.

Applicable editions

Central edition, Region edition

Endpoint and authorization information

  • Get the endpoint: Replace {domain} in the API request syntax.
  • Get a personal access token.
  • Get organizationId: Required for Central edition only. Go to the Basic Information page in the Organization Management console to obtain your organization ID.

Product

Resource

Required permission

Project Collaboration

Estimated Effort

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/projex/organizations/{organizationId}/workitems/{id}/estimatedEfforts

Region edition

GET https://{domain}/oapi/v1/projex/workitems/{id}/estimatedEfforts

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

Personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example value

id

string

path

Yes

Unique identifier of the work item.

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The ID of the organization.

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/workitems/{id}/estimatedEfforts' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/workitems/{id}/estimatedEfforts' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

array

-

object

creator

object

id

string

User ID.

674d96abd497cd558d68****

name

string

Name.

name-xxx

description

string

Description.

test

gmtCreate

string

Creation time.

gmtModified

string

Modification time.

id

string

ID.

id-xxx

modifier

object

id

string

User ID.

674d96abd497cd558d68****

name

string

Name.

name-xxx

owner

object

id

string

User ID.

674d96abd497cd558d68****

name

string

Name.

name-xxx

spentTime

number

Estimated effort.

1.5

workType

string

Work item type.

Backend Development

workitemId

string

Work item ID.

beda1775d1c3eca7dbdff5****

Response example

[
    {
        "creator": {
            "id": "674d96abd497cd558d68****",
            "name": "name-xxx"
        },
        "description": "test",
        "gmtCreate": "",
        "gmtModified": "",
        "id": "id-xxx",
        "modifier": {
            "id": "674d96abd497cd558d68****",
            "name": "name-xxx"
        },
        "owner": {
            "id": "674d96abd497cd558d68****",
            "name": "name-xxx"
        },
        "spentTime": 1.5,
        "workType": "Backend Development",
        "workitemId": "beda1775d1c3eca7dbdff5****"
    }
]

Error codes

Visit the Error Code Center to view API-related error codes.