dosubot[bot] commented on issue #8476: URL: https://github.com/apache/incubator-devlake/issues/8476#issuecomment-2995349833
<!-- Answer --> DevLake doesn't currently support injecting incidents directly via webhook. However, you can inject an issue using the webhook endpoint, and if the issue is marked as an incident (for example, by setting the `type` field to a value recognized as an incident), DevLake will automatically create the corresponding incident records in the incidents table. This is handled internally by the `IsIncident` method and the `saveIncidentRelatedRecordsFromIssue` function in the webhook plugin code. There is no dedicated webhook endpoint for incidents at this time, and this is the intended workaround for now [reference](https://github.com/apache/incubator-devlake/blob/fa80e48aed7b2ca1d979358a3a8075fe4b98c371/backend/plugins/webhook/api/issues.go). If webhook-based injection doesn't fit your needs, you can also use the Customize Plugin to import incident-related data via CSV [reference](https://github.com/apache/incubator-devlake/issues/8446). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b30d7aee-ae23-4031-835e-a24c778e8328?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8476) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
