Linear
@mgreten/linearv2026.05.22.2
01README
Linear project management integration for swamp — issue CRUD, viewer auto-assignment, label management by name, and team/project/state listing via the official @linear/sdk.
02Release Notes
Add @hivemq/linear attribution in README and module JSDoc
03Models
@mgreten/linearv2026.05.22.2linear.ts
fn getViewer()
Resolve the authenticated user's ID, name, and email
fn createMyIssue(title: string)
Create an issue auto-assigned to the authenticated user with team/project defaults
| Argument | Type | Description |
|---|---|---|
| title | string | Issue title |
fn getIssue()
Fetch a single issue by identifier (e.g. ENG-123) or UUID
fn updateIssue(title?: string, description?: string, stateId?: string, assigneeId?: string, projectId?: string)
Update fields on an existing issue
| Argument | Type | Description |
|---|---|---|
| title? | string | New title |
| description? | string | New description |
| stateId? | string | New workflow state ID |
| assigneeId? | string | New assignee user ID |
| projectId? | string | New project ID |
fn listIssues(projectId?: string, labelName?: string)
Query issues with filters
| Argument | Type | Description |
|---|---|---|
| projectId? | string | Filter by project ID |
| labelName? | string | Filter by label name |
fn addLabels(labels: string)
Attach labels to an issue by name (additive — preserves existing labels)
| Argument | Type | Description |
|---|---|---|
| labels | string | Comma-separated label names to add |
fn listLabels()
List available labels for a team
fn createIssue(title: string, projectId?: string, stateId?: string, assigneeId?: string)
Create an issue with full control over all fields
| Argument | Type | Description |
|---|---|---|
| title | string | Issue title |
| projectId? | string | Project ID |
| stateId? | string | Workflow state ID |
| assigneeId? | string | Assignee user ID |
fn listTeams()
List all Linear teams and sync them as resources
fn listProjects()
List Linear projects, optionally filtered by team or name substring
fn listStates()
List workflow states for a team and sync them as resources
Resources
issue(infinite)— A Linear issue with resolved relations
team(infinite)— A Linear team
project(infinite)— A Linear project
workflowState(infinite)— A Linear workflow state (e.g. Backlog, In Progress, Done)
viewer(infinite)— The authenticated Linear user
label(infinite)— A Linear issue label
04Previous Versions
2026.05.22.1May 22, 2026
Initial release: 11 methods for Linear issue CRUD, viewer auto-assignment, label management, and team/project/state listing
05Stats
A
100 / 100
Downloads
6
Archive size
244.4 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
06Platforms