Connect Linear: step-by-step guide
Opens one Linear issue per failing test in your team, comments on it when the test fails again, and moves it to the team's first Completed state when the test passes clean. The issue names the evidence folder; files are not uploaded. This guide takes you from nothing to a verified connection, and lists the errors you can meet with their cause and fix.
Last updated:
Keep your credentials private. Never paste a token, key, password or webhook URL into a chat. Type it only in Studio → Settings → Integrations, where it is saved in your workspace's .env file and shown as dots. The same goes for an AI assistant: it can walk you through this guide, but it never needs your token.
What you need
- A Linear account that is a member of the team that will receive the issues.
- A personal API key created with that account.
- The team's ID (a UUID, not the short team key like ENG).
Get the credentials
- In Linear, open Settings → Account → Security & Access (https://linear.app/settings/account/security) and create a personal API key.
- Give it full access, or restrict it to that one team with read and write access: the Studio reads the team's workflow states, creates issues and comments, and changes an issue's state.
- Copy the key and keep it for the Studio only (next step).
- Open the team in Linear, press Ctrl+K (Cmd+K on a Mac) and choose Copy model UUID. That is the team ID.
Connect it in the Studio
- In the Studio, open Settings → Integrations → Linear.
- Paste the key in
LINEAR_API_KEYand the team ID inLINEAR_TEAM_ID, turn onLINEAR_ENABLEDand press Save changes. - Open the Tickets page (left bar, below Executive Report). Under Where, pick + Add a destination → Linear, then press save tickets.
Check that it works
- There is no test ticket for Linear: run a test that fails. The run log shows "[Linear] <ID> filed" with the issue's identifier.
- Open that issue in Linear. Run the test again so it passes: the issue gets a comment and moves to the team's first Completed state.
Common errors
| What you see | Cause | Fix |
|---|---|---|
"[Linear] needs LINEAR_API_KEY and LINEAR_TEAM_ID: nothing filed" | One of the two is empty, or the team ID has characters an ID never has. | Save both in Settings → Integrations → Linear. |
| "Linear answered 401" or an authentication error | The key is wrong, revoked or copied incompletely. | Create a new personal API key and save it again. |
| "Linear answered …" with "Entity not found" or an argument validation error | The team ID is not a team this key can reach, or it is the short team key instead of the UUID. | Use Copy model UUID on the team page, and check that the key has access to that team. |
| "[Linear] the team has no "completed" state" | The team's workflow has no state of type Completed, so a passing test cannot close the issue. | Add a Completed state to the team's workflow in Linear (Team settings → Issue statuses). |
| Everything is saved, but no issue appears | LINEAR_ENABLED is off, the Linear destination is missing or unticked on the Tickets page, the Tickets rules skip this test, or it was a sandbox run. | Check the switch, the destination under Where, and the rules under When on the Tickets page. |
Settings keys
| Key | What it does | Valid value | How to check it |
|---|---|---|---|
LINEAR_ENABLED | Open Linear issues for failures | true or false | Turn on, add the Linear destination on the Tickets page, then run a failing test. |
LINEAR_API_KEY | Linear API key (secret, saved only on this computer) | One line, no quotes, no spaces; sent as is in the Authorization header | A wrong key shows "Linear answered 401" or an authentication error in the run log. |
LINEAR_TEAM_ID | Linear team | The team's UUID: letters, digits and dashes, up to 64 characters | Copy model UUID on the team page; a team key like ENG is not an ID. |
More: all integrations, the Settings guide, troubleshooting. Other guides: Jira Cloud, Azure Boards, Slack, Microsoft Teams, Telegram, GitHub Issues, GitLab Issues, PagerDuty, TestRail, Ticket webhook, Tickets.
Still stuck? Write to support@nexusstudioqa.com with the exact error line the Studio shows. Do not include a token.