Skip to content

LinearProjects

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:48

The Linear implementation of the projects capability, backed by Linear projects and the team’s workflow.

  • Projects

new LinearProjects(scope): LinearProjects

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:54

TeamScope

LinearProjects

readonly key: "projects"

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:50

Capability key, always "projects".

Projects.key


readonly providerName: "linear" = "linear"

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:52

Provider name, always "linear".

Projects.providerName

close(_owner, board): Promise<void>

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:77

Archives the project. Reversible in Linear.

string

BoardSummary

Promise<void>

Projects.close


create(owner, name, template): Promise<BoardSummary>

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:69

Makes a project for the team and brings the team’s statuses in line with the template.

string

string

BoardTemplate

Promise<BoardSummary>

Projects.create


ensure(_owner, _board, template): Promise<EnsureReport>

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:101

Adds the template’s missing statuses to the team (never removes or renames one). Everything Linear cannot create from the API is a todo.

string

BoardSummary

BoardTemplate

Promise<EnsureReport>

Projects.ensure


find(owner, name): Promise<BoardSummary | undefined>

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:64

The open project with exactly this name.

string

string

Promise<BoardSummary | undefined>

Projects.find


items(_owner, board, template): Promise<BoardItem[]>

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:137

The project’s issues with status, whether they are open, priority and open blockers.

string

BoardSummary

BoardTemplate

Promise<BoardItem[]>

Projects.items


list(_owner): Promise<BoardSummary[]>

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:57

Every project of the team, open and archived. The owner is the workspace, which the token already names.

string

Promise<BoardSummary[]>

Projects.list


move(_owner, from, to, _template): Promise<MoveReport>

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:172

Moves the open issues of one project into another. An issue is in one project, so there is nothing to keep on the target; status and priority belong to the issue and travel with it. Closed issues stay where they are.

string

BoardSummary

BoardSummary

BoardTemplate

Promise<MoveReport>

Projects.move


read(_owner, board): Promise<BoardState>

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:82

The team’s statuses, the built-in priority, and the team’s automation.

string

BoardSummary

Promise<BoardState>

Projects.read


setStatus(_owner, _board, key, status): Promise<LifecycleResult>

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:157

Puts an issue in the team state with this name; transitioned is false when it already is there.

string

BoardSummary

string

string

Promise<LifecycleResult>

Projects.setStatus


whoami(): Promise<{ boards: number; ok: boolean; }>

Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:187

A smoke check: how many projects the token can see for the team.

Promise<{ boards: number; ok: boolean; }>

Projects.whoami