View as Markdown
LinearB icon

LinearB ACTION

Create Incident

Create a new incident within the LinearB platform. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's LinearB account once, then configure and run Create Incident from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "linearb-create-incident",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    linearb: { authProvisionId: "apn_xxxxxxx" },
    providerId: "Provider ID",
    httpUrl: "HTTP URL",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Incident inputs
Property Type Description
providerId Provider ID string
The unique identifier of the incident in your incident management provider. Eg. provider_internal_id1
Required
httpUrl HTTP URL string
The URL of your incident management provider. The combination http_url/provider_key should open the incident in your PM provider. Eg. http://myprovider.io/1
Required
title Title string
The title of the incident
Required
issuedAt Issued At string
The specific time when the incident was logged and officially opened. (timestamp ISO 8601 format). Eg. 2019-09-26T07:58:30.996
Required
startedAt Started At string
The specific time when work on the incident commenced. (timestamp ISO 8601 format). Eg. 2019-09-26T07:58:30.996
Optional
endedAt Ended At string
The specific time when the incident was successfully resolved. (timestamp ISO 8601 format). Eg. 2019-09-26T07:58:30.996
Optional
gitRef Git Ref string
The Git reference of the release responsible for causing this incident, Eg. commit short or long sha or tag name (Eg. commit short or long sha/tag name).
Optional
teams Teams string[]
The list of LinearB teams names related to this incident. (lowercase only)
Optional Dynamic
services Services string[]
The list of LinearB services related to this incident. (lowercase only)
Optional Dynamic
repositoryUrls Repository URLs string[]
The list of repos urls related to this incident. Eg. https://github.com/myorg/repo1.git
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
linearb-create-incident
Version
0.0.3
App
LinearB
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes