core
core copied to clipboard
Allow attaching components to incidents via API
It should be possible to report an incident and attach components (with statuses) to incidents in a single API request.
I want to work on it. Can you guide me through the process?
@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.