Linear
Create issues, list teams, and manage projects in Linear.
On this page
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.
// 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);
});{
"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"
}
}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.
| Input | Type | Description |
|---|---|---|
team_idrequired | id (picked from your account) | The team for which the issue, project or comment will be created |
user_idoptional | id (picked from your account) | Assignee of the Issue / Comment |
issue_idrequired | id (picked from your account) | ID of Linear Issue |
bodyrequired | long text | The content of the comment |
linear_create_issue
Create Issue. Create a new issue in Linear workspace
Also accepted as create_issue.
| Input | Type | Description |
|---|---|---|
team_idrequired | id (picked from your account) | The team for which the issue, project or comment will be created |
titlerequired | text | Title |
descriptionoptional | long text | Description |
state_idoptional | id (picked from your account) | Status of the Issue |
labelsoptional | ids (picked from your account) | Labels for the Issue |
assignee_idoptional | id (picked from your account) | Assignee of the Issue / Comment |
priority_idoptional | id (picked from your account) | Priority of the Issue |
template_idoptional | id (picked from your account) | ID of Template |
linear_update_issue
Update Issue. Update a issue in Linear Workspace
Also accepted as update_issue.
| Input | Type | Description |
|---|---|---|
team_idrequired | id (picked from your account) | The team for which the issue, project or comment will be created |
issue_idrequired | id (picked from your account) | ID of Linear Issue |
titleoptional | text | Title |
descriptionoptional | long text | Description |
state_idoptional | id (picked from your account) | Status of the Issue |
labelsoptional | ids (picked from your account) | Labels for the Issue |
assignee_idoptional | id (picked from your account) | Assignee of the Issue / Comment |
priority_idoptional | id (picked from your account) | Priority of the Issue |
linear_create_project
Create Project. Create a new project in Linear workspace
| Input | Type | Description |
|---|---|---|
team_idrequired | id (picked from your account) | The team for which the issue, project or comment will be created |
namerequired | text | Project Name |
descriptionoptional | long text | Description |
iconoptional | text | Icon |
coloroptional | text | Color |
startDateoptional | date-time (ISO) | Start Date |
targetDateoptional | date-time (ISO) | Target Date |
stateoptional | one of "backlog" | "planned" | "started" | "paused" | "completed" | "canceled" | The status of the project |
linear_update_project
Update Project. Update a existing project in Linear workspace
| Input | Type | Description |
|---|---|---|
team_idrequired | id (picked from your account) | The team for which the issue, project or comment will be created |
project_idrequired | id (picked from your account) | ID of Linear Project |
namerequired | text | Project Name |
descriptionoptional | long text | Description |
iconoptional | text | Icon |
coloroptional | text | Color |
startDateoptional | date-time (ISO) | Start Date |
targetDateoptional | date-time (ISO) | Target Date |
stateoptional | one of "backlog" | "planned" | "started" | "paused" | "completed" | "canceled" | The status of the project |
rawGraphqlQuery
Raw GraphQL query. Perform a raw GraphQL query
| Input | Type | Description |
|---|---|---|
queryrequired | long text | Query |
variablesoptional | object | Parameters |
Details
- Id
linear- Category
- Project management
- Tags
- issues, project-management, engineering, agile
- Package
@activepieces/piece-linear@0.3.0- Runs
- Through the integration runner