Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow attaching components to incidents via API #156

Open
jbrooksuk opened this issue Dec 24, 2024 · 2 comments
Open

Allow attaching components to incidents via API #156

jbrooksuk opened this issue Dec 24, 2024 · 2 comments
Labels
good first issue Good for newcomers
Milestone

Comments

@jbrooksuk
Copy link
Member

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

@jbrooksuk jbrooksuk added the good first issue Good for newcomers label Dec 24, 2024
@jbrooksuk jbrooksuk added this to the v3.0 milestone Dec 24, 2024
@Ayush-Mittal10
Copy link

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

@jbrooksuk
Copy link
Member Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants