Inspect

Linear

Linear triggers start a run when something changes in a Linear workspace connected to Inspect. Four trigger types are available under Add trigger > Linear:

  • Issue: an issue is created or updated.
  • Comment: someone comments on an issue.
  • Release: a release is created or moves to a new stage.
  • Project: a project is created, or its status or health changes.

Requirements

  • The Inspect Linear app must be installed in the workspace. Someone with the Admin or Manage integrations role sets it up; see Linear. Until then, saving fails with Set up the Linear integration in Settings > Integrations before creating Linear automations.
  • With more than one Linear workspace connected, each trigger has a Linear workspace setting. Keep Any workspace to accept events from all of them.

Issue

Under Events, choose Issue created, Issue updated, or both. New triggers start with Issue created and a Changed by is Person condition.

Conditions (up to 20, all must match):

  • Title contains, does not contain, starts with, ends with, is exactly, or is not exactly a value, matched against the issue title.
  • Description takes the same operators as Title, matched against the issue description.
  • Team is any of, or none of, team keys or names.
  • Project is any of, or none of, project names.
  • Status is any of, or none of, current status names.
  • Label is any of, or none of, labels. It matches any of the issue's current labels.
  • Assignee email is any of, or none of, the assignee's email.
  • Priority is any of, or none of, Urgent, High, Medium, Low, or No priority.
  • Status changed to is any of the new statuses, only when this update changed the status.
  • Label added is any of the labels this update added.
  • Changed by is, or is not, Person or App or integration.

All text and name matching ignores case. Status changed to and Label added only match updates, so they require Issue updated (Select "Issue updated" to use "Status changed to" or "Label added" conditions).

Updates that change only ordering fields, such as sort order, never fire. Archived and trashed issues never fire.

FieldTypeDescription
action'create' | 'update'create or update.
issue_id, issue_identifier, issue_title, issue_description, issue_urlstringThe issue.
team, project, state, priority, labels, assigneetextCurrent values. team is the team key, assignee the email.
changed_fieldsstring[]Fields this update changed.
added_labelsstring[]Labels this update added.
actor, updated_atstringWho made the change and when.

Edits to one issue within the same minute collapse into one run per automation, so a burst of quick edits starts a single run.

Comment

Fires on new comments on Linear issues. Edits, deletions, and comments on project updates, documents, or initiatives never fire.

Conditions (up to 20, all must match):

  • Comment contains, does not contain, starts with, ends with, is exactly, or is not exactly a value, matched against the comment text, ignoring case.
  • Team is any of, or none of, the issue's team keys or names.
  • Written by is, or is not, Person or App or integration.

New triggers start with Written by is Person. Removing every condition also matches comments from apps and integrations.

FieldTypeDescription
comment_id, comment_body, comment_url, authorstringThe comment.
parent_comment_bodystringThe comment it replies to, for replies.
issue_id, issue_identifier, issue_title, issue_url, teamstringThe issue.

The payload doesn't include the rest of the issue or its other comments. Tell the prompt to look them up in Linear when it needs them.

Each comment starts at most one run per automation. Mentioning Inspect in a comment also starts a Linear agent session (see Linear), so a comment trigger without a Comment condition can run alongside it.

For example, Comment starts with /triage and Written by is Person lets people ask the automation to triage an issue from Linear.

Release

Fires when a release is created or moves to a new stage. Other release edits, such as name, description, or dates, never fire. Archived and trashed releases never fire.

Conditions (up to 20, all must match; none matches every creation and stage change):

  • Pipeline is any of, or none of, pipeline names, ignoring case.
  • Stage is any of, or none of, stage names, ignoring case.
  • Stage type is any of, or none of, Planned, Started, Completed, or Canceled.
FieldTypeDescription
action'create' | 'update'create or update.
release_id, release_name, version, release_url, descriptionstringThe release.
pipeline, stage, stage_typestringWhere it is now.
commit_shastringThe release's commit.
issues, issue_counttextIdentifier, title, and URL of up to 50 linked issues, and the full count.

Each creation or stage change starts one run. A release that returns to an earlier stage fires again.

Project

Under Events, choose any of Project created, Status changed, and Health changed. New triggers select all three. Other project edits, such as description, dates, or members, never fire. Archived and trashed projects never fire.

Conditions (up to 20, all must match):

  • Status is any of, or none of, status names, ignoring case.
  • Status type is any of, or none of, Backlog, Planned, Started, Paused, Completed, or Canceled.
  • Health is any of, or none of, On track, At risk, or Off track.
  • Lead email is any of, or none of, the project lead's email, ignoring case.

Conditions check the project's state at the time of the event, so pick the event you mean. For "a project went off track", choose only Health changed with Health is any of At risk, Off track. With Status changed also selected, an already at-risk project would fire again on every status change.

FieldTypeDescription
action, eventstextcreate or update, and which events happened (one update can change both status and health).
project_id, project_name, project_url, descriptionstringThe project.
status, status_type, healthstringCurrent state.
lead, lead_emailstringThe project lead.
start_date, target_datestringPlanned dates.

Each change starts one run.

Duplicates and loops

  • Changes Inspect itself makes in Linear never fire any Linear trigger, so an automation that comments on or updates issues doesn't trigger itself.
  • Redeliveries of the same change collapse into one run.
  • When several Linear triggers on one automation match the same event, the automation runs once.

Troubleshooting