Linear
Connect & Ingest data from Linear
Linear is a modern issue tracking and project management platform for software teams. The Sling Linear connector extracts data from Linear's GraphQL API, supporting teams, users, issues, comments, projects, cycles, labels, workflow states, attachments, issue relations, and project milestones.
CLI Pro Required: APIs require a CLI Pro token or Platform Plan.
Setup
The following credentials are accepted:
Secrets:
api_key(required) -> Your Linear Personal API Key
Inputs (optional):
anchor_date-> Starting date for first sync of incremental endpoints (ISO 8601 format, e.g.,2024-01-01T00:00:00Z). Defaults to 1 year ago.
Getting Your Personal API Key
Log in to Linear
Click your avatar (bottom-left corner)
Go to Settings
Navigate to Security & access in the left sidebar
Scroll to Personal API keys
Click New API key
Name the key (e.g.,
sling-api)Select Full access for permissions
Select All teams you have access to for team access
Click Create and copy the key immediately (it won't be shown again)
Important: Personal API keys grant the same access as your user account. Use a service account with minimal permissions for production workloads.
Using sling conns
sling connsEnvironment Variable
See here to learn more about the .env.sling file.
Sling Env File YAML
See here to learn more about the sling env.yaml file.
Replication
Here's an example replication configuration to sync Linear data to a PostgreSQL database:
Incremental sync for issues, comments, projects, and attachments:
Endpoints
teams
All teams in the workspace
No
users
All users in the workspace
No
issues
All issues with full detail (state, assignee, project, cycle, labels)
Yes
comments
All issue comments
Yes
projects
All projects with lead and status
Yes
cycles
All cycles (sprints) with progress tracking
No
labels
All issue labels
No
workflow_states
All workflow states (issue status definitions)
No
attachments
All issue attachments
Yes
issue_relations
All issue relations (blocks, related, duplicates)
No
project_milestones
All project milestones
No
To discover available endpoints:
Incremental Sync
Four endpoints support incremental sync via the updatedAt timestamp:
issues — Fetches issues updated since the last sync:
First run: Fetches all issues updated in the last year (or since
anchor_dateif provided)Subsequent runs: Only fetches issues modified after the last sync timestamp
Includes archived issues for completeness
comments — Fetches comments updated since the last sync:
First run: Fetches all comments from the last year (or since
anchor_date)Subsequent runs: Only fetches new or modified comments
projects — Fetches projects updated since the last sync.
attachments — Fetches attachments updated since the last sync.
All other endpoints run in full-refresh mode since they contain relatively small datasets (teams, labels, workflow states, etc.) that benefit from complete refreshes.
Rate Limiting
The Linear API enforces rate limits:
5,000 requests per hour per user
250,000 complexity points per hour per user
The connector automatically:
Uses conservative rate limiting (5 requests/second with concurrency of 3)
Retries with exponential backoff on 429 (rate limit) responses, up to 5 attempts
Common Use Cases
Sync All Linear Data
Track Issues Incrementally
Export Issues with Comments for Analysis
If you are facing issues connecting, please reach out to us at [email protected], on discord or open a Github Issue here.
Last updated
Was this helpful?