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.
Implements
Section titled “Implements”Projects
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LinearProjects(
scope):LinearProjects
Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:54
Parameters
Section titled “Parameters”TeamScope
Returns
Section titled “Returns”LinearProjects
Properties
Section titled “Properties”
readonlykey:"projects"
Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:50
Capability key, always "projects".
Implementation of
Section titled “Implementation of”Projects.key
providerName
Section titled “providerName”
readonlyproviderName:"linear"="linear"
Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:52
Provider name, always "linear".
Implementation of
Section titled “Implementation of”Projects.providerName
Methods
Section titled “Methods”close()
Section titled “close()”close(
_owner,board):Promise<void>
Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:77
Archives the project. Reversible in Linear.
Parameters
Section titled “Parameters”_owner
Section titled “_owner”string
BoardSummary
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”Projects.close
create()
Section titled “create()”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.
Parameters
Section titled “Parameters”string
string
template
Section titled “template”BoardTemplate
Returns
Section titled “Returns”Promise<BoardSummary>
Implementation of
Section titled “Implementation of”Projects.create
ensure()
Section titled “ensure()”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.
Parameters
Section titled “Parameters”_owner
Section titled “_owner”string
_board
Section titled “_board”BoardSummary
template
Section titled “template”BoardTemplate
Returns
Section titled “Returns”Promise<EnsureReport>
Implementation of
Section titled “Implementation of”Projects.ensure
find()
Section titled “find()”find(
owner,name):Promise<BoardSummary|undefined>
Defined in: plugins/holocron-plugin-linear/src/capabilities/projects.ts:64
The open project with exactly this name.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”Promise<BoardSummary | undefined>
Implementation of
Section titled “Implementation of”Projects.find
items()
Section titled “items()”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.
Parameters
Section titled “Parameters”_owner
Section titled “_owner”string
BoardSummary
template
Section titled “template”BoardTemplate
Returns
Section titled “Returns”Promise<BoardItem[]>
Implementation of
Section titled “Implementation of”Projects.items
list()
Section titled “list()”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.
Parameters
Section titled “Parameters”_owner
Section titled “_owner”string
Returns
Section titled “Returns”Promise<BoardSummary[]>
Implementation of
Section titled “Implementation of”Projects.list
move()
Section titled “move()”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.
Parameters
Section titled “Parameters”_owner
Section titled “_owner”string
BoardSummary
BoardSummary
_template
Section titled “_template”BoardTemplate
Returns
Section titled “Returns”Promise<MoveReport>
Implementation of
Section titled “Implementation of”Projects.move
read()
Section titled “read()”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.
Parameters
Section titled “Parameters”_owner
Section titled “_owner”string
BoardSummary
Returns
Section titled “Returns”Promise<BoardState>
Implementation of
Section titled “Implementation of”Projects.read
setStatus()
Section titled “setStatus()”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.
Parameters
Section titled “Parameters”_owner
Section titled “_owner”string
_board
Section titled “_board”BoardSummary
string
status
Section titled “status”string
Returns
Section titled “Returns”Promise<LifecycleResult>
Implementation of
Section titled “Implementation of”Projects.setStatus
whoami()
Section titled “whoami()”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.
Returns
Section titled “Returns”Promise<{ boards: number; ok: boolean; }>
Implementation of
Section titled “Implementation of”Projects.whoami