Skip to main content

Overview

Tool Name

Purpose

The linear_connector_tools group integrates Genesis with Linear issue tracking. It uses the effective usable linear connection for the current user and active bot (My default, then Role default) from Genesis Connections and supports both API key and user OAuth authentication.

Key Features

Create and update issues

Open new Linear issues, edit fields, assign work, and create sub-issues.

Search active work

Filter issues by team, assignee, state, project, label, query text, or priority.

Comment and review context

Add issue comments and fetch detailed issue or comment history.

Upload and download files

Upload files from Git repos or bot storage to Linear, or download files from Linear to bot storage.

Manage attachment links

Link external URLs to issues, list existing attachment links, or remove them.

Discover teams and projects

List available teams and projects before automating writes.

Input Parameters for Each Function

linear_connector

Core parameters See placeholder rules. File and attachment link parameters Other Linear changes When Genesis routes a raw Linear GraphQL write through RUN_MUTATION, it uses the requester’s sole usable Linear connection, or their effective default if they can use several. If several are usable and the default is missing or is not one of them, the request is refused rather than choosing a connection. Raw Linear reads use the connection declared for the requested environment when one is specified; otherwise they use the person’s default connection.
thread_id, bot_id, and user_id are supplied implicitly by Genesis at runtime, so you normally only provide the business fields above.
Available actions

Workflow/How It Works

  1. Configure your effective default linear connection in Linear, or pass connection when you need a specific saved connection.
  2. Start with GET_TEAMS or GET_PROJECTS if you need valid team keys or project names.
  3. Use CREATE_ISSUE, UPDATE_ISSUE, GET_ISSUE, and SEARCH_ISSUES to manage work items.
  4. Use ADD_COMMENT and LIST_COMMENTS to collaborate inside an issue thread.
  5. Use UPLOAD_FILE to attach files (logs, reports, CSVs, images) to issues and DOWNLOAD_FILE to pull files from Linear asset URLs into bot storage.
  6. Use CREATE_ATTACHMENT_LINK, LIST_ATTACHMENT_LINKS, GET_ATTACHMENT_LINK, and DELETE_ATTACHMENT_LINK to manage structured URL references in Linear’s Attachments panel.
  7. Use RUN_MUTATION for any other change: archiving or deleting an issue, editing or deleting a comment, or creating, changing or deleting projects, cycles and labels.
CREATE_ISSUE, UPDATE_ISSUE, ADD_COMMENT, CREATE_ATTACHMENT_LINK, DELETE_ATTACHMENT_LINK and RUN_MUTATION run under Action Review. With no rule that covers them, they run at once, as they did before Action Review. A rule decides whether a covered change runs, waits for a person, or is refused. On a connection each person signs in to, an approved change is sent with the requester’s own sign-in, never the approver’s; if the requester’s sign-in is gone, it is refused before anything is sent. For a CREATE_ISSUE proposal with no assignee, Genesis resolves the requester’s active Linear user or the configured linear.default_assignee before review and freezes that choice into the proposal. If no active Linear user matches, the issue is filed unassigned and a successful result includes assignee_warning. Supplying Unassigned explicitly skips the default. For app-actor setup and attribution, see the Linear connection guide. For RUN_MUTATION:
  • The review card shows the GraphQL document, its operation name, and its variables. It also shows any extra headers and, for a routed web-tool request, the exact body size, content type, and checksum. After approval, Genesis sends the frozen request once to Linear.
  • Approve it in Genesis, where the request is shown. Its Slack card links to Genesis and has no buttons, and an agent cannot record a spoken approval of it.
  • A rule written for another Linear action also applies to the same change made here. A rule on UPDATE_ISSUE (resource tag action:update_issue), on operation class write, or on one issue (ENG-7) or team (team:<id>) decides a raw issueUpdate on that issue as it decides UPDATE_ISSUE. When several rules match, the strictest decides. A rule can name RUN_MUTATION alone with the resource tag action:run_mutation.
  • Only what runs is judged: the selected operation, without the fields @skip or @include turn off. Another operation in the same document decides nothing. Each issue, team or attachment link it touches, a parent issue it names and the project, initiative, document or post a comment is on, is judged on its own, so a rule allowing one cannot let through a change another rule refuses. A comment on anything but an issue is not ADD_COMMENT, so only the rules on RUN_MUTATION decide it. Free-form values such as an attachment’s metadata name no resource.
  • A document that cannot be read, whose operation is not a mutation, or that makes more than 1000 top-level fields is refused. So is one whose issues or attachment links Linear cannot confirm, since a rule naming them could not be applied.
  • Genesis reports executed only when every mutation selects success under its own name and Linear answers true for each, and not_applied only when each answers false. Anything else is reconciliation_required, and so is a redirect answer, which is never followed. An interrupted RUN_MUTATION is never read back: check Linear before anyone runs it again.
Without a rule that covers Linear changes, the web tool (get_web_content with api_data) also sends Linear GraphQL mutations as written. With such a rule, the web tool hands a mutation to RUN_MUTATION on the requester’s Linear connection, so the rule decides it. An eligible mutation is handed to RUN_MUTATION on the requester’s Linear connection. See Web Access Tools for the request conditions and routed_to result field. For reconciliation_required, follow the no-retry guidance in Action Review. A sweep may settle eligible governed results as described in the Action Review response contract, but it does not rerun the write. On a connection each person signs in to, Linear shows each person only what they can see. So when someone other than the requester reconciles a created issue or attachment link and finds nothing, the result stays reconciliation_required for the requester to check; finding it still settles it as executed. Only two Linear writes have standing-grant scopes: issue creation is bounded to its team and workspace, while comments are bounded to the issue and workspace. Those scopes apply to CREATE_ISSUE and ADD_COMMENT, respectively.

Examples

This example assumes the default linear connection uses user_oauth. If the default connection uses api_key, pass a specific Linear user name or email instead of assignee="me".

Output

  • CREATE_ISSUE, UPDATE_ISSUE, and SEARCH_ISSUES return compact issue records with id, title, url, state, assignee, priority, project, team, and labels.
  • A successful CREATE_ISSUE with no assignee returns assignee_warning if no active Linear user matched the requester or configured default, so the issue was created unassigned.
  • GET_ISSUE returns a detailed issue object with description, creator, estimate, due date, parent, children, attachments, and timestamps.
  • ADD_COMMENT returns the created comment metadata.
  • LIST_COMMENTS, GET_TEAMS, and GET_PROJECTS return count plus an array of results.
  • Comment records include author and, where available, author_email; either field can be null when Linear does not return a user for the comment.
  • UPLOAD_FILE returns asset_url, filename, size, and content_type. If comment was provided, includes the created comment.
  • DOWNLOAD_FILE returns filename, file_path, relative_path, file_id, and size.
  • LIST_ATTACHMENT_LINKS returns count plus an array of attachment link details.
  • CREATE_ATTACHMENT_LINK returns the created attachment link with id, title, subtitle, and url.
  • GET_ATTACHMENT_LINK returns full attachment link details including the associated issue and creator.
  • DELETE_ATTACHMENT_LINK returns success.

Configuration Details

  • The tool resolves the effective usable linear connection for the current user and active bot (My default, then Role default). Pass connection to target a specific saved connection instead.
  • Genesis supports both api_key and user_oauth authentication for Linear.
  • Connection tests query https://api.linear.app/graphql and verify the authenticated viewer.
  • For user_oauth, Genesis uses fixed provider endpoints: https://linear.app/oauth/authorize and https://api.linear.app/oauth/token.
  • If your deployment restricts outbound access, allow both linear.app and api.linear.app.

Limitations or Notes

  1. SEARCH_ISSUES text matching is limited to issue titles and identifiers. Each call reads up to 250 issues by default (limit, clamped to 1–500), following Linear’s pages one request at a time. The result reports total_returned, truncated and query_filtered. truncated means Linear had more issues than were read. A text query filters only the issues read, so a truncated text search (query_filtered true) may have more matches. When truncated is true the result also returns next_cursor; pass it as cursor with the same filters to read the rest.
  2. Unknown label names cause CREATE_ISSUE or UPDATE_ISSUE to fail; labels must exist on the team or at workspace level, and Genesis does not create them automatically. UPDATE_ISSUE adds names in labels and removes names in remove_labels, leaving every other label in place. If the issue has both a team and workspace label with the same name, remove_labels cannot choose between them and the update is refused.
  3. assignee="me" is only supported when the resolved linear connection uses user_oauth.
  4. When multiple role defaults for linear conflict, Genesis returns an error directing you to set a user default or pass connection explicitly. See Default connection layers.
  5. issue_id can be a Linear UUID or an issue identifier such as ENG-123.
  6. A missing or expired OAuth token prevents the tool from connecting until the user reauthorizes.
  7. UPLOAD_FILE uploads binary files to Linear’s cloud storage (via a signed URL). Use this when you have actual file content. CREATE_ATTACHMENT_LINK only links a URL; it does not upload files.
  8. Files in Linear’s private cloud storage require authentication to access externally. DOWNLOAD_FILE handles this automatically, but only for HTTPS URLs on supported Linear asset hosts such as uploads.linear.app, cdn.linear.app, or api.linear.app.