Set up Linear integration
This guide shows you how to set up the Linear integration.
Prerequisites
Section titled “Prerequisites”- A Linear account with API access
- A Linear API key with read/write permissions
Connect Linear
Section titled “Connect Linear”- Navigate to Settings → Integrations
- Find Linear and click Connect
- Enter your Linear API key
- Click Verify — Control Center validates the key by calling the Linear API
- The key is stored securely in your system keychain
What the integration provides
Section titled “What the integration provides”| Feature | Description |
|---|---|
| Bidirectional sync | Local tickets mirror to Linear and vice versa |
| Provider mapping | Tickets with provider: linear are synced to Linear |
| Status sync | Local status changes are pushed to Linear; Linear changes are pulled |
| Team mapping | Linear teams map to Control Center workspaces |
How sync works
Section titled “How sync works”TicketSyncService and TicketRemoteSyncHandler handle bidirectional sync:
Pull (Linear → Control Center)
Section titled “Pull (Linear → Control Center)”- Periodically fetches tickets from Linear
- Creates or updates local ticket mirrors
- Maps Linear status to Control Center ticket status
- Preserves the
externalKeyfor round-tripping
Push (Control Center → Linear)
Section titled “Push (Control Center → Linear)”- Local ticket changes (status, title, description, assignee) are pushed to Linear
- The workflow service stays free of infrastructure concerns
- Sync is triggered after local mutations complete
Create a Linear ticket from Control Center
Section titled “Create a Linear ticket from Control Center”- Create a ticket with Provider set to Linear
- The ticket is created locally and synced to Linear
- The Linear URL is stored on the ticket
Assign a Linear ticket
Section titled “Assign a Linear ticket”Assignment works the same as local tickets:
- Assign the ticket to an agent
- The agent dispatches and works
- Status changes are synced back to Linear
Troubleshooting
Section titled “Troubleshooting”API key invalid
Section titled “API key invalid”- Regenerate the key in Linear Settings → API
- Update the key in Control Center Settings → Integrations
Sync not working
Section titled “Sync not working”- Check that the ticket’s
provideris set tolinear - Verify the workspace has Linear integration enabled
- Check logs for sync errors