core icon indicating copy to clipboard operation
core copied to clipboard

Allow attaching multiple components to an incident with the API

Open itsnewtjam opened this issue 3 months ago • 2 comments

This addresses issue #156

Supports attaching multiple components when creating an incident via API:

{
  "name": "<string>",
  "status": 0,
  "message": "<string>",
  "template": "<string>",
  "visible": false,
  "stickied": false,
  "notifications": false,
  "occurred_at": "<string>",
  "template_vars": [],
  "components": [
    {
      "component_id": 123,
      "component_status": 1
    },
    // etc...
  ]
}

Also:

  • pulls the first component for the component template variable, just in case :)
  • removes associated rows in the incident_components table when an incident is deleted

itsnewtjam avatar Aug 28 '25 20:08 itsnewtjam

@jbrooksuk Test added! Not sure why the CreateMetricPoint test failed in the checks though, seems unrelated and it's passing fine locally

itsnewtjam avatar Sep 02 '25 13:09 itsnewtjam

Hey there, is there any ETA on when this might be merged? It would make my life much easier having this capability.

mschmieder avatar Nov 17 '25 16:11 mschmieder