core icon indicating copy to clipboard operation
core copied to clipboard

Allow attaching components to incidents via API

Open jbrooksuk opened this issue 1 year ago • 2 comments

It should be possible to report an incident and attach components (with statuses) to incidents in a single API request.

jbrooksuk avatar Dec 24 '24 12:12 jbrooksuk

I want to work on it. Can you guide me through the process?

Ayush-Mittal10 avatar Dec 24 '24 17:12 Ayush-Mittal10

@Ayush-Mittal10 that'd be great! You'd need to update CreateIncidentData with an array of IncidentComponentData DTOs. Each IncidentComponentData can have an incident and status (using the enum).

In the CreateIncident action, you'll want to then associate the incidents with any passed components, making sure to update their statuses.

jbrooksuk avatar Dec 30 '24 10:12 jbrooksuk