Linear
Issues (list with filters, search, create, update), comments, projects, teams, workflow states, users, agent writes opt-in, delete node only
Beta v0.1.0 Node.js 16 actions
About
A Graphrt plugin for the Linear GraphQL API. It lists, searches, reads, creates and updates issues, reads and writes comments, and reads projects, teams, workflow states and users. Every operation sends a fixed GraphQL document with typed variables, so neither workflows nor agents write GraphQL by hand. It is built with the declarative REST layer (definition.mjs).
What it can do
- Workspace: get_viewer, list_teams, get_team (with workflow states and members), list_workflow_states, list_users
- Issues: list_issues (any IssueFilter), search_issues (full text), get_issue (with sub-issues and comments), create_issue, update_issue, delete_issue (node only, moves to trash)
- Comments: list_comments, create_comment
- Projects: list_projects, get_project (with issues)
- api_request: raw GraphQL as a workflow node: method: POST, path: /graphql, body: {query, variables} (GET only for agents)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Current user
linear.get_viewer - List teams
linear.list_teams - Get team
linear.get_team - List workflow states
linear.list_workflow_states - List users
linear.list_users - List issues
linear.list_issues - Search issues
linear.search_issues - Get issue
linear.get_issue - Create issue
linear.create_issue - Update issue
linear.update_issue
Show all 16 actions
- Delete issue
linear.delete_issue - List issue comments
linear.list_comments - Comment on issue
linear.create_comment - List projects
linear.list_projects - Get project
linear.get_project - Linear GraphQL API request
linear.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
LINEAR_API_KEYRequiredPersonal API key (lin_api_...), sent as Authorization: <key> -
LINEAR_TOOL_ALLOW_WRITEOptional1 lets agent tools create and update issues and add comments -
LINEAR_TOOL_TOKEN_SOURCE
How to use it
In Graphrt Desktop
- Open Plugins and search for Linear.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install linear workflow.yaml
- id: team
type: linear.get_team
team_id: "{{#start.team_id#}}"
- id: create
type: linear.create_issue
team_id: "{{#start.team_id#}}"
issue_title: "Nightly import failed"
description: "See the run log."
priority: 2
state_id: "{{#team.data.states.nodes.0.id#}}"