Operations with Specific Sprint
This resource lets you work with sprints of the specific agile board.
Resource | /api/agiles/{agileID}/sprints/{sprintID} |
Returned entity | Sprint. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
|
Sprint attributes
Represents a sprint that is associated with an agile board. Each sprint can include issues from one or more projects.
Related Resources
Below you can find the list of resources that let you work with this entity.
Attributes
This table describes attributes of the Sprint
entity.
To receive an attribute in the response from the server, specify it explicitly in the
fields
request parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
id | String | The ID of the sprint. |
agile | Agile | The agile board that the sprint belongs to. |
name | String | Name of the sprint. |
goal | String | Goal of the sprint. |
start | Long | The timestamp in milliseconds indicating the start date of the sprint. Stored as a unix timestamp at UTC. |
finish | Long | The timestamp in milliseconds indicating the end date of the sprint. Stored as a unix timestamp at UTC. |
archived | Boolean | Indicates whether the sprint is archived. |
isDefault | Boolean | If |
issues | Array of Issues | Issues that are present on this sprint. |
unresolvedIssuesCount | Int | Number of unresolved issues on this sprint. |
previousSprint | Sprint | If you provide this attribute when you create a new sprint, then all unresolved issues from this sprint will be moved to the newly created sprint. |
Read a Specific Sprint
Get settings of the specific sprint of the agile board.
To get the current sprint of the board, use current
instead of the sprint ID.
Sample request URI:
Required permissions
The user must have permissions to read the board.
Request syntax
{sprintID} | Database ID of the sprint. |
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of Sprint attributes that should be returned in the response. If no field is specified, only the |
Sample
Sample request
Sample response body
Delete a Specific Sprint
Delete the specific sprint from agile board.
Required permissions
The user must have permissions to update the board.
Request syntax
{sprintID} | Database ID of the sprint. |
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of Sprint attributes that should be returned in the response. If no field is specified, only the |
Sample
Sample request
Update a Specific Sprint
Update the specific sprint of the agile board.
To update the current sprint of the board, use current
instead of the sprint ID.
Sample request URI: https://example.youtrack.cloud/api/agiles/108-4/sprints/current?fields=id,archived,start,finish,goal,isDefault,name,previousSprint(finish,name,id),unresolvedIssuesCount
Required permissions
The user must have permissions to update the board.
Request syntax
{sprintID} | Database ID of the sprint. |
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of Sprint attributes that should be returned in the response. If no field is specified, only the |