Timeline

6 Trellis API endpoints for timeline, with the scopes, parameters and response each one takes.

Get the project's public timeline link

GET/workspace/{handle}/{key}/timeline-share

Scopes

Needs a token holding projects:read.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

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

Responses

200OK

TimelineShareResponse

created_atstring
created_bystring
created_by_namestring
is_publicboolean
urlstring
url_tokenstring

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.

List a project's timeline snapshots

GET/workspace/{handle}/{key}/timeline-snapshots

Scopes

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

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

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

Responses

200OK

array of TimelineSnapshotListItem

created_atstring
created_bystring
created_by_namestring
idstring
is_autoboolean
labelstringnullable
project_idstring

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.

Snapshot the project's current timeline

POST/workspace/{handle}/{key}/timeline-snapshots

Scopes

Needs a token holding timeline:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

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

Request bodyapplication/jsonoptional

CreateTimelineSnapshotRequest

labelstringnullable

Responses

201Created

TimelineSnapshotResponse

created_atstring
created_bystring
idstring
is_autoboolean
labelstringnullable
project_idstring
snapshot_dataTimelineSnapshotData
3 fields
dependenciesarray of TimelineSnapshotDependencynullable
4 fields
dependency_typestring
from_issue_idstring
lag_daysinteger
to_issue_idstring
issuesarray of TimelineSnapshotIssuenullable
13 fields
assignee_idstringnullable
codestring
colorstringnullable
end_datestringnullable
end_timestringnullable
idstring
parent_idstringnullable
start_datestringnullable
start_timestringnullable
status_idstringnullable
timeline_orderstringnullable
titlestring
typestring
milestonesarray of TimelineSnapshotMilestonenullable
5 fields
colorstringnullable
datestring
descriptionstringnullable
idstring
namestring

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.

Get a timeline snapshot with its data

GET/workspace/{handle}/{key}/timeline-snapshots/{snapshotId}

Scopes

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

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

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

snapshotIdstringRequired

Responses

200OK

TimelineSnapshotResponse

created_atstring
created_bystring
idstring
is_autoboolean
labelstringnullable
project_idstring
snapshot_dataTimelineSnapshotData
3 fields
dependenciesarray of TimelineSnapshotDependencynullable
4 fields
dependency_typestring
from_issue_idstring
lag_daysinteger
to_issue_idstring
issuesarray of TimelineSnapshotIssuenullable
13 fields
assignee_idstringnullable
codestring
colorstringnullable
end_datestringnullable
end_timestringnullable
idstring
parent_idstringnullable
start_datestringnullable
start_timestringnullable
status_idstringnullable
timeline_orderstringnullable
titlestring
typestring
milestonesarray of TimelineSnapshotMilestonenullable
5 fields
colorstringnullable
datestring
descriptionstringnullable
idstring
namestring

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 a timeline snapshot

DELETE/workspace/{handle}/{key}/timeline-snapshots/{snapshotId}

Scopes

Needs a token holding timeline:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

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

snapshotIdstringRequired

Responses

200OK

Message

messagestring

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.

Restore the project's timeline from a snapshot

POST/workspace/{handle}/{key}/timeline-snapshots/{snapshotId}/restore

Scopes

Needs a token holding timeline:write.

Path parameters

handlestringRequired

Workspace handle, as it appears in the Trellis URL.

keystringRequired

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

snapshotIdstringRequired

Responses

200OK

RestoreTimelineSnapshotResponse

auto_snapshot_idstring
dependencies_restoredinteger
issues_skippedinteger
issues_updatedinteger
messagestring
milestones_restoredinteger

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.