Linear Integration
Connect Agnox to Linear to create issues from failed runs, whether they were hosted runs, Playwright reporter runs or JUnit/Allure uploads. You can create them by hand from the Investigation Hub or from the AI Auto Bug modal.
:::info Bidirectional traceability
When a Linear issue is created from a run, its identifier and URL are stored in execution.linearIssues[], so you can go from the run to the issue and back.
:::
Capabilities
| Feature | Description |
|---|---|
| Manual issue creation | Create a Linear issue from any failed run in the Investigation Hub drawer or the Executions list |
| Readable defaults | Title Failed run: <run name> (falls back to the run group, then the run ID); Markdown description with run, group, run ID, status, environment (including qa), source, the error and the end of the log |
| Clean text | ANSI colour codes stripped and secrets redacted in the modal and again on the server |
| AI-assisted bug reports | Pre-fill the title and description from the Auto Bug modal |
| Team and project routing | Issues are created in the configured team and, optionally, a project |
| Execution linkage | Issue identifier and URL persisted on the run (linearIssues[]) |
| Test Connection | Checks the API key can see the configured team (and project) |
Prerequisites
- A Linear account with Member or Admin role.
- A Linear API key (personal
lin_api_…key, or an OAuth access token). - The Team ID and, optionally, a Project ID.
Step 1 — Generate a Linear API Key
- In Linear, go to Settings → Account → Security & Access (Personal API keys).
- Click Create key, give it a label (e.g.
Agnox), and copy the generated key.
:::tip Use a service account For team environments, create a dedicated Linear bot user and generate the key under that account so it isn't tied to any individual. :::
Step 2 — Find Your Team ID (and Project ID)
- In Linear, open Settings → Workspace → Teams.
- Click on your team and look at the URL:
linear.app/<workspace>/settings/teams/<TEAM_ID>. - Copy the
TEAM_IDportion. - (Optional) To add every issue to a project, copy the project's ID (from the project's Copy ID menu item).
Step 3 — Configure in Agnox
- In the Agnox dashboard, go to Settings → Connectors.
- In the Linear card, fill in:
| Field | Value |
|---|---|
| Linear API Key | The key from Step 1. Leave blank on later edits to keep the stored key |
| Linear Team ID | From Step 2 |
| Project ID | (Optional) New issues are added to this project; leave blank for team-only issues |
- Click Save Configuration. The card shows a Connected badge.
- Click Test Connection to check that the key can see the team (and the project, if set).
Creating Issues from Executions
From the Investigation Hub
- Open a
FAILED,ERRORorUNSTABLErun. - Click the Linear button in the drawer toolbar.
- The modal is pre-filled with
Failed run: <run name>and a Markdown run report. The Docker image is listed only for hosted runs. - Edit as needed and click Create Issue.
If the run already has linked Linear issues, the modal opens on that list first; click Create Another Issue to file a new one. Jira, Linear and Monday.com share the same issue-tracker modal.
From the AI Auto Bug Modal
The ✨ Auto Bug button appears only when AI is enabled for your organization (your own AI API key in Settings → AI Models).
- Run Auto Bug on a failed run (✨ icon in the execution drawer).
- Review the AI-generated report.
- Click Submit to Linear. The issue is created and its URL saved back to the run.
Troubleshooting
Requests to Linear time out after 10 seconds; Linear's error messages are shown in short form.
| Message | Likely Cause |
|---|---|
Linear request failed: Authentication required… | Invalid or revoked API key |
Team <id> was not found or is not visible to this API key | Incorrect Team ID, or the key's user is not in that team |
Project <id> was not found | The Project ID is wrong or belongs to another workspace |
Linear did not respond within 10 seconds | Linear was slow or unreachable — try again |