ListMilestones - Lists milestones

Updated at:

Applicable editions

Central edition, Region edition

Endpoints and authorization

  • Get endpoint: Replace {domain} in the API request syntax.
  • Get a personal access token.
  • Get the organization ID: Required only for Central edition. Go to Organization Administration > Basic Information to get the organization ID.

Product

Resource

Required permission

Project Collaboration

milestone

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{id}/milestones

Region edition

GET https://{domain}/oapi/v1/projex/projects/{id}/milestones

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

Your personal access token.

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

Request parameters

Parameter

Type

Location

Required

Description

Example

id

string

path

Yes

The unique ID of the project.

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The organization ID.

status

string

query

No

A comma-separated list of statuses to filter by.

page

integer

query

No

The page number to retrieve.

perPage

integer

query

No

The number of items per page.

Request example

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{id}/milestones?status={status}&page={page}&perPage={perPage}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/projects/{id}/milestones?status={status}&page={page}&perPage={perPage}' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

array

A list of milestones.

-

object

Milestone details.

actualEndDate

string

The actual completion time.

assignedTo

object

The user assigned to the milestone.

id

string

The user ID.

674d96abd497cd558d68****

name

string

The name of the user.

name-xxx

creator

object

The user who created the milestone.

id

string

The user ID.

674d96abd497cd558d68****

name

string

The name of the user.

name-xxx

description

string

The description of the milestone.

test

gmtCreate

string

The creation time.

gmtModified

string

The last modified time.

id

string

The milestone ID.

id-xxx

modifier

object

The user who last modified the milestone.

id

string

The user ID.

674d96abd497cd558d68****

name

string

The name of the user.

name-xxx

planEndDate

string

The planned completion time.

status

object

The status of the milestone.

displayName

string

The display name of the status.

To Do

id

string

The status ID.

id-xxx

name

string

The name of the status.

To Do

nameEn

string

The English name of the status.

TODO

subject

string

The name of the milestone.

test

Response example

[
    {
        "actualEndDate": "",
        "assignedTo": {
            "id": "674d96abd497cd558d68****",
            "name": "name-xxx"
        },
        "creator": {
            "id": "674d96abd497cd558d68****",
            "name": "name-xxx"
        },
        "description": "test",
        "gmtCreate": "",
        "gmtModified": "",
        "id": "id-xxx",
        "modifier": {
            "id": "674d96abd497cd558d68****",
            "name": "name-xxx"
        },
        "planEndDate": "",
        "status": {
            "displayName": "To Do",
            "id": "id-xxx",
            "name": "To Do",
            "nameEn": "TODO"
        },
        "subject": "test"
    }
]

Response headers

Parameter

Description

Example

x-next-page

The next page number.

x-page

The current page number.

x-per-page

The number of items per page.

x-prev-page

The previous page number.

x-total

The total number of items.

x-total-pages

The total number of pages.

Error codes

See the Error Code Center for a list of API error codes.