ListSprints - Get a list of sprints

Updated at:

Applicable editions

Central edition, Region edition

Endpoints and authorization information

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

Product

Resource

Required permission

Project Collaboration

iteration

Read-only

Request syntax

Central edition

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

Region edition

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

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 project identifier.

589c53d622cc8521793e08****

status

array[string]

query

No

Filter by status. TODO, DOING, and ARCHIVED correspond to Not started, In progress, and Completed.

TODO,DOING

page

integer

query

No

Page number.

1

perPage

integer

query

No

Number of items per page.

20

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

Organization ID.

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/589c53d622cc8521793e08****/sprints?status=TODO,DOING&name=test&page=1&perPage=20' \
  -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/589c53d622cc8521793e08****/sprints?status=TODO,DOING&name=test&page=1&perPage=20' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

array

-

object

capacityHours

integer

Sprint capacity, in hours.

100

creator

object

Creator.

id

string

User ID.

674d96abd497cd558d68****

name

string

Username.

user-name-xxx

description

string

Sprint description.

test

endDate

string

End date.

gmtCreate

string

Time when the sprint was created.

gmtModified

string

Time when the sprint was last modified.

id

string

Sprint ID.

1111

locked

boolean

Whether the sprint is locked.

false

modifier

object

Last modifier.

id

string

User ID.

674d96abd497cd558d68****

name

string

Username.

user-name-xxx

name

string

Sprint name.

sprint-test

owners

array

Owners.

-

object

Owner.

id

string

User ID.

674d96abd497cd558d68****

name

string

Username.

user-name-xxx

startDate

string

Start date.

status

string

Sprint status. TODO, DOING, and ARCHIVED correspond to Not started, In progress, and Completed.

TODO

Response example

[
    {
        "capacityHours": 100,
        "creator": {
            "id": "674d96abd497cd558d68****",
            "name": "user-name-xxx"
        },
        "description": "test",
        "endDate": "",
        "gmtCreate": "",
        "gmtModified": "",
        "id": "1111",
        "locked": false,
        "modifier": {
            "id": "674d96abd497cd558d68****",
            "name": "user-name-xxx"
        },
        "name": "sprint-test",
        "owners": [
            {
                "id": "674d96abd497cd558d68****",
                "name": "user-name-xxx"
            }
        ],
        "startDate": "",
        "status": "TODO"
    }
]

Response headers

Parameter

Description

Example value

x-next-page

Next page number.

x-page

Current page number.

x-per-page

Number of items per page.

x-prev-page

Previous page number.

x-total

Total number of records.

x-total-pages

Total number of pages.

Error codes

For more information, see Error codes.