Skip to main content

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​

FeatureDescription
Manual issue creationCreate a Linear issue from any failed run in the Investigation Hub drawer or the Executions list
Readable defaultsTitle 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 textANSI colour codes stripped and secrets redacted in the modal and again on the server
AI-assisted bug reportsPre-fill the title and description from the Auto Bug modal
Team and project routingIssues are created in the configured team and, optionally, a project
Execution linkageIssue identifier and URL persisted on the run (linearIssues[])
Test ConnectionChecks 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​

  1. In Linear, go to Settings → Account → Security & Access (Personal API keys).
  2. 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)​

  1. In Linear, open Settings → Workspace → Teams.
  2. Click on your team and look at the URL: linear.app/<workspace>/settings/teams/<TEAM_ID>.
  3. Copy the TEAM_ID portion.
  4. (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​

  1. In the Agnox dashboard, go to Settings → Connectors.
  2. In the Linear card, fill in:
FieldValue
Linear API KeyThe key from Step 1. Leave blank on later edits to keep the stored key
Linear Team IDFrom Step 2
Project ID(Optional) New issues are added to this project; leave blank for team-only issues
  1. Click Save Configuration. The card shows a Connected badge.
  2. 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​

  1. Open a FAILED, ERROR or UNSTABLE run.
  2. Click the Linear button in the drawer toolbar.
  3. The modal is pre-filled with Failed run: <run name> and a Markdown run report. The Docker image is listed only for hosted runs.
  4. 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).

  1. Run Auto Bug on a failed run (✨ icon in the execution drawer).
  2. Review the AI-generated report.
  3. 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.

MessageLikely Cause
Linear request failed: Authentication required…Invalid or revoked API key
Team <id> was not found or is not visible to this API keyIncorrect Team ID, or the key's user is not in that team
Project <id> was not foundThe Project ID is wrong or belongs to another workspace
Linear did not respond within 10 secondsLinear was slow or unreachable — try again