Sprints

8 Trellis API endpoints for sprints, with the scopes, parameters and response each one takes.

List a project's open sprints

GET/workspace/{handle}/{key}/sprints

Scopes

Needs a token holding issues:read, issues:write or projects:read.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

Responses

200OK

array of SprintResponse

created_atstring
done_countinteger
end_datestringnullable
idstring
is_backlogboolean
issue_countinteger
namestring
project_idstring
start_datestringnullable
statusstring
updated_atstring

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Create a sprint

POST/workspace/{handle}/{key}/sprints

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

Request bodyapplication/json

CreateSprintRequest

end_datestringnullable
namestring
start_datestringnullable
statusstringnullable

Responses

201Created

SprintResponse

created_atstring
done_countinteger
end_datestringnullable
idstring
is_backlogboolean
issue_countinteger
namestring
project_idstring
start_datestringnullable
statusstring
updated_atstring

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Update a sprint

PUT/workspace/{handle}/{key}/sprints

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

Request bodyapplication/json

UpdateSprintRequest

end_datestringnullable
idstringRequired
namestring
start_datestringnullable
statusstringnullable

Responses

200OK

SprintResponse

created_atstring
done_countinteger
end_datestringnullable
idstring
is_backlogboolean
issue_countinteger
namestring
project_idstring
start_datestringnullable
statusstring
updated_atstring

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Delete an empty sprint

DELETE/workspace/{handle}/{key}/sprints/{sprintID}

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

sprintIDstringRequired

Responses

200OK

Confirmation message.

string

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Assign several issues to a user

POST/workspace/{handle}/{key}/sprints/bulk-assign

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

Request bodyapplication/json

BulkAssignRequest

assignee_idstringRequired
issue_idsarray of stringnullableRequired

Responses

200OK

SprintIssuesAssigned

assignedinteger

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Move issues into a sprint

POST/workspace/{handle}/{key}/sprints/bulk-move

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

Request bodyapplication/json

BulkMoveIssuesRequest

issue_idsarray of stringnullableRequired
next_issue_idstringnullable
prev_issue_idstringnullable
target_sprint_idstringRequired

Responses

200OK

SprintIssuesMoved

movedinteger

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Set the status of several issues

POST/workspace/{handle}/{key}/sprints/bulk-status

Scopes

Needs a token holding issues:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

Request bodyapplication/json

BulkStatusRequest

issue_idsarray of stringnullableRequired
status_idstringRequired

Responses

200OK

SprintIssuesStatusUpdated

updatedinteger

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.

Search a project's sprints

GET/workspace/{handle}/{key}/sprints/search

Scopes

Needs a token holding issues:read, issues:write or projects:read.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

Project key, e.g. `T-001`.

Query parameters

qstring

Case-insensitive text to match against sprint names.

limitinteger

Maximum number of sprints to return, from 1 to 50. Defaults to 10.

Responses

200OK

array of SprintResponse

created_atstring
done_countinteger
end_datestringnullable
idstring
is_backlogboolean
issue_countinteger
namestring
project_idstring
start_datestringnullable
statusstring
updated_atstring

defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.

See Errors for the fields it carries.