Stitch / docs
Linear

Comment

Start work from commands, keywords, or mentions in new issue comments.


Use type: Comment with actions: [create]. Comment edits and deletions do not start work.

Schema

Linear trigger JSON Schema

key: linear-command
name: Handle Linear commands
provider: linear
harness: coding-agent
sandbox: workspace
agentId: build
initialPrompt: Investigate the request in the comment.
linear:
  connection: engineering
  event:
    type: Comment
    actions: [create]
  commands: [/stitch]
  humanActorsOnly: true
  teamIds: ['backend-team-uuid']

Filters

These fields belong under linear. All configured filters must pass.

FilterMatching
commandsComment's first token matches a selected slash command, case-sensitive.
teamIdsMatch any selected team ID on the parent issue.
projectIdsMatch any selected project ID on the parent issue.
stateIdsMatch any selected workflow state ID on the parent issue.
assigneeIdsMatch any selected assignee ID on the parent issue.
creatorIdsMatch the parent issue's creator ID, not the comment author or event actor.
issueIdsMatch the parent issue UUID, not the comment ID.
issuesMatch exact parent issue identifiers such as ENG-42.
projectsMatch any selected exact project name on the parent issue.
statesMatch any selected exact workflow-state name on the parent issue.
teamsMatch any selected exact team name or key on the parent issue.
labelIdsMatch the parent issue's selected labels using labelOperator.
labelsMatch exact parent issue label names using labelOperator.
labelOperatorhas_any (default), has_all, or has_none.
humanActorsOnlyRequire a human user actor; defaults to false.
actorIdsRequire one of the selected actor IDs.
keywordsMatch any case-insensitive substring in this comment's body, not the parent issue's text.
mentionedUserIdsMatch user IDs in Linear profile mention links in this comment's body; plain names do not count.

See shared filter rules and aliases for snake_case spellings and how ID and name filters combine.

Set at least one of commands, keywords, or mentionedUserIds (mentioned_user_ids). changedFields and addedLabelIds are not supported for comment events.

When commands is set, the first non-whitespace token must match a configured command exactly and case-sensitively. /stitch-other does not match /stitch.

Event behavior

Command, keyword, mention, actor, and issue UUID checks use the webhook. Team, project, status, assignee, creator, issue identifier, and label filters fetch the parent issue's current API state at processing time. A failed required lookup does not pass. Once a run is reserved, retries reuse that run without fetching the issue again. Before reservation, retries can see newer issue state.

Concurrency

Supported scopes: repository and subject. The subject is the parent issue, not the comment. Limits are per trigger, Linear connection, and execution repository. Concurrency limits hold work in the queue until capacity is available. commit and event scopes are not supported.

See General for setup and shared rules, and the Linear trigger schema for configuration fields.

On this page