Linear

Create issues, list teams, and manage projects in Linear.

Project managementOAuth6 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (6)
  4. linear_create_comment
  5. linear_create_issue
  6. linear_update_issue
  7. linear_create_project
  8. linear_update_project
  9. rawGraphqlQuery
  10. Details

Connect

Auth type: OAuth (oauth2). The connection holds the provider's OAuth tokens. They are sealed on the server and only opened when an action runs.

Scopes requested: readwrite

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("linear", action, input) resolves with the provider's answer and rejects when Linear isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "linear"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Linear when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellLinear = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Linear isn't connected.
  const output = await step.run("Linear", () =>
    step.ctx.integrations.invoke("linear", "linear_create_comment", {
      "team_id": "<team_id>",
      "issue_id": "<issue_id>",
      "body": "<comment body>"
    }),
  );
  step.ctx.log("Linear answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "linear",
    "piece_action": "linear_create_comment",
    "input": {
      "team_id": "<team_id>",
      "issue_id": "<issue_id>",
      "body": "<comment body>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/linear/linear_create_comment" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"team_id":"<team_id>","issue_id":"<issue_id>","body":"<comment body>"}}'

Actions

linear_create_comment

Create Comment. Create a new comment on an issue in Linear workspace

Also accepted as create_comment.

InputTypeDescription
team_idrequiredid (picked from your account)The team for which the issue, project or comment will be created
user_idoptionalid (picked from your account)Assignee of the Issue / Comment
issue_idrequiredid (picked from your account)ID of Linear Issue
bodyrequiredlong textThe content of the comment

linear_create_issue

Create Issue. Create a new issue in Linear workspace

Also accepted as create_issue.

InputTypeDescription
team_idrequiredid (picked from your account)The team for which the issue, project or comment will be created
titlerequiredtextTitle
descriptionoptionallong textDescription
state_idoptionalid (picked from your account)Status of the Issue
labelsoptionalids (picked from your account)Labels for the Issue
assignee_idoptionalid (picked from your account)Assignee of the Issue / Comment
priority_idoptionalid (picked from your account)Priority of the Issue
template_idoptionalid (picked from your account)ID of Template

linear_update_issue

Update Issue. Update a issue in Linear Workspace

Also accepted as update_issue.

InputTypeDescription
team_idrequiredid (picked from your account)The team for which the issue, project or comment will be created
issue_idrequiredid (picked from your account)ID of Linear Issue
titleoptionaltextTitle
descriptionoptionallong textDescription
state_idoptionalid (picked from your account)Status of the Issue
labelsoptionalids (picked from your account)Labels for the Issue
assignee_idoptionalid (picked from your account)Assignee of the Issue / Comment
priority_idoptionalid (picked from your account)Priority of the Issue

linear_create_project

Create Project. Create a new project in Linear workspace

InputTypeDescription
team_idrequiredid (picked from your account)The team for which the issue, project or comment will be created
namerequiredtextProject Name
descriptionoptionallong textDescription
iconoptionaltextIcon
coloroptionaltextColor
startDateoptionaldate-time (ISO)Start Date
targetDateoptionaldate-time (ISO)Target Date
stateoptionalone of "backlog" | "planned" | "started" | "paused" | "completed" | "canceled"The status of the project

linear_update_project

Update Project. Update a existing project in Linear workspace

InputTypeDescription
team_idrequiredid (picked from your account)The team for which the issue, project or comment will be created
project_idrequiredid (picked from your account)ID of Linear Project
namerequiredtextProject Name
descriptionoptionallong textDescription
iconoptionaltextIcon
coloroptionaltextColor
startDateoptionaldate-time (ISO)Start Date
targetDateoptionaldate-time (ISO)Target Date
stateoptionalone of "backlog" | "planned" | "started" | "paused" | "completed" | "canceled"The status of the project

rawGraphqlQuery

Raw GraphQL query. Perform a raw GraphQL query

InputTypeDescription
queryrequiredlong textQuery
variablesoptionalobjectParameters

Details

Id
linear
Category
Project management
Tags
issues, project-management, engineering, agile
Package
@activepieces/piece-linear@0.3.0
Runs
Through the integration runner