Skip to content

Linear

Connect your Linear team to a Testomat.io project to create issues from failing tests, link the ones you already have, and turn Linear issues into requirements.

Testomat.io connects to Linear with a personal API key. Linear calls it an API key; in Testomat.io the same key goes into the Personal Access Token field.

The Personal API keys section in Linear with the New API key button

  1. In Linear, open Settings and go to Security & access.
  2. Under Personal API keys, click New API key.
  3. Enter a Key name, for example Testomat.io.
  4. Choose the Permissions and Team access the key gets.
  5. Click Create.

The Create API key form in Linear with Key name, Permissions, and Team access

  1. Click the copy icon next to the key. Copy the key before you leave the page - Linear shows it only once.

The new Linear API key with the copy icon

The Issues management page in Settings with the Connect to IMS button

  1. In Testomat.io, open Settings and go to Issues management.
  2. Click Connect to IMS.
  3. Select Linear.
  4. Change the Profile Name if you want a different one.
  5. Paste your key into Personal Access Token. The Create it on Linear link above the field opens the page where you make one.
  6. Enter your team name in Team.
  7. Click Save.

The Linear connection form with Profile Name, Personal Access Token, and Team

The new profile appears on the Issues management page, next to any other systems you use. To copy or delete it later, click the ⋯ button next to the profile.

The Linear profile on the Issues management page with the Copy and Delete options

  1. Open a test, suite, or run, click the ⋯ button in the top-right corner, and select Link to Issue.
  2. On the Create new issue tab, pick your Linear profile.
  3. Enter the title and description.
  4. Click Show Optional Fields to fill in more Linear fields.
  5. Click Create Issue.

The test menu with Link to Issue

Field What it sets
Status The workflow state of the issue.
Priority How urgent the issue is.
Assignee Who works on it.
Labels Linear labels.
Project and Project milestone Where the issue belongs in your Linear projects.
Cycle The cycle the issue is planned for.
Estimate The estimate, in your team’s scale.
Due date When it should be done.
Parent issue A parent issue, by URL or ID.

The lists show only the values of your connected team. If your team doesn’t use estimates, the Estimate field is turned off.

  1. Open a test, suite, or run.
  2. Click the ⋯ button in the top-right corner and select Link to Issue.
  3. Open the Link existing issue tab.
  4. Paste the Linear issue URL or key, such as QA-1, into Issue URL or ID.
  5. If the project has more than one Linear profile, select a profile in Integration.
  6. Click Link Issue.

The Link existing issue tab with a Linear key and the Integration field

The Integration field shows only when two or more Linear profiles match the issue. Testomat.io links the issue with the profile you select. In Linear, the activity shows the user of that profile.

If you do not select a profile, you see the message “Please select an integration for this issue”. Select a profile and click Link Issue again.

  1. In a manual run, open a failed test and click Raise Defect.
  2. Pick your Linear profile.
  3. Click Show Optional Fields to set Linear fields.
  4. Create the defect.

To link a defect that already exists, open Link existing defect and paste the key. With Tracker set to Detect automatically, Testomat.io recognizes a Linear key. If the project has more than one Linear profile, select a profile in Integration.

Defects raised in Linear show up on the Defects page. Open the Linear tab to see only them, with their status, severity, and a link to each issue in Linear.

To pull the latest changes from Linear right away, click the ⋯ button in the top-right corner and select Sync Defects.

The Defects page with the Linear tab open and the Sync Defects option

When you link a test, suite, run, or requirement to a Linear issue, Testomat.io adds it to the issue as an attachment. Testomat.io does not post a comment, so the discussion in the issue stays clean.

Attachments show in the Resources section of the Linear issue. The title starts with the item type, such as Suite: or Test:.

A Suite attachment in the Resources section of a Linear issue

Item Title in Linear Subtitle in Linear
Test Test: <test title> Last status, suite, labels, assignee, and last run time
Suite Suite: <suite title> —
Run Run: <run title> Run status. Passed and failed runs also show test counts.
Requirement Requirement: <requirement title> —

The status shows as [PASSED], [FAILED], or [SKIPPED]. A test with no runs shows no status. A run with no title shows as Run: <run ID>.

Click an attachment to see its details. To go back to the item, click Open in Testomat.

The details of a suite attachment in Linear with the description and the Open in Testomat button

Testomat.io updates the attachment when the test status changes. When you unlink the issue or delete the test, Testomat.io removes the attachment.

Add a Linear issue as a requirement to plan tests from it. Testomat.io imports the title and the description. See Linear as a Requirement Source.

Testomat.io also adds the requirement to the Linear issue as an attachment, together with the suites and tests linked to it. When you unlink or delete the requirement, Testomat.io removes these attachments.

Linear requirements refresh once a day. To pull the latest version right away, open the requirement, click the ⋯ menu, and select Refresh Requirement.