Subscribe to issues and manage your teams projects.

Using our official Linear integration

  • Easily subscribe to Linear webhooks to trigger your jobs.

  • Create any tasks possible with the Linear API.

  • Use io.runTask() and the official SDK or fetch.

  • Example code using Linear

    Below are some working code examples of how you can use Linear with Trigger.dev. These samples are open source and maintained by the community, you can copy and paste them into your own projects.

    import { TriggerClient } from "@trigger.dev/sdk";
    import { Linear } from "@trigger.dev/linear";
    const linear = new Linear({
    id: "linear",
    apiKey: process.env.LINEAR_API_KEY!,
    });
    client.defineJob({
    id: "linear-new-issue-reply",
    name: "Linear: automatically reply to new issues",
    version: "1.0.0",
    integrations: {
    linear,
    },
    trigger: linear.onIssueCreated(),
    run: async (payload, io, ctx) => {
    const newIssueId = payload.data.id;
    await io.linear.createComment("create-comment", {
    issueId: newIssueId,
    body: "Thanks for opening this issue!",
    });
    await io.linear.createReaction("create-reaction", {
    issueId: newIssueId,
    emoji: "+1",
    });
    },
    });
    ,