Linear Destination
Create Linear issues from source rows via the Linear GraphQL API (
issueCreatemutation).
YAML Example
destination:
type: linear
team_id_env: LINEAR_TEAM_ID
title_template: "{{ row.title }}"
description_template: "Reported by {{ row.reporter }}\n\n{{ row.body }}"
auth:
type: bearer
token_env: LINEAR_API_KEY
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
type | "linear" | — | Required |
team_id | string | null | null | Linear team id (direct value) |
team_id_env | string | null | null | Env var holding the team id |
title_template | string | — | Jinja2 template → issue title |
description_template | string | — | Jinja2 template → issue description (Markdown) |
label_ids | list[str] | [] | Label ids to attach to every created issue |
assignee_id | string | null | null | User id to assign every created issue to |
auth | bearer | bearer | Bearer auth — set token_env to your Linear API key |
retry | object | null | null | Per-destination retry override |
Authentication
Linear uses a personal API key as a bearer token. Create one in Linear under Settings → Security & access → Personal API keys:
export LINEAR_API_KEY="lin_api_xxxxxxxxxxxxxxxx"
export LINEAR_TEAM_ID="your-team-uuid"
Requests POST to https://api.linear.app/graphql.
Finding ids
team_id, label_ids, and assignee_id are Linear UUIDs, not the
human-readable names. Fetch them once via the GraphQL API:
query { teams { nodes { id name } } }
query { issueLabels { nodes { id name } } }
query { users { nodes { id name } } }
Common Patterns
Tag every synced issue and auto-assign:
label_ids: ["<bug-label-uuid>", "<from-sync-uuid>"]
assignee_id: "<triage-user-uuid>"
Markdown body (Linear renders Markdown in descriptions):
description_template: |
**Severity:** {{ row.severity }}
{{ row.details }}
Notes
- (core) — no extra install required.
- Create-only — this destination opens new issues; it does not update existing ones.
- The mutation's success flag is checked per row; a
success: falseresponse or transport error is recorded inresult.row_errors, andon_error: skipcontinues the batch. label_ids/assignee_idmust be valid for the targetteam_idor Linear rejects the mutation.