Skip to main content

Linear Destination

Create Linear issues from source rows via the Linear GraphQL API (issueCreate mutation).

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​

FieldTypeDefaultDescription
type"linear"—Required
team_idstring | nullnullLinear team id (direct value)
team_id_envstring | nullnullEnv var holding the team id
title_templatestring—Jinja2 template → issue title
description_templatestring—Jinja2 template → issue description (Markdown)
label_idslist[str][]Label ids to attach to every created issue
assignee_idstring | nullnullUser id to assign every created issue to
authbearerbearerBearer auth — set token_env to your Linear API key
retryobject | nullnullPer-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: false response or transport error is recorded in result.row_errors, and on_error: skip continues the batch.
  • label_ids / assignee_id must be valid for the target team_id or Linear rejects the mutation.

References​