You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][Webhook] Incident closing via webhook does not set resolution_date #8906
Look at incidents table how record is created with created_date field filled with createdDate from body
Close the incident curl --location --request POST 'http://localhost:4000/api/rest/plugins/webhook/connections/3/issue/202606031000/close' \ --header 'Authorization: Bearer XXXXXXXX'
Response is Ok 200 { "code": 0, "success": true, "message": "success", "causes": null, "data": null }
Look at incidents table how record created previously not fill resolution_date
At Dora dashboard FDRT show no data
Update incident resolution_date field into database update incidents set resolution_date = '2026-06-03 09:30:00' where id = 'webhook:3:202606031000'
I had a look through the webhook plugin code to figure out why this is happening.
In backend/plugins/webhook/api/issues.go, the closeIssue function (the one behind POST /plugins/webhook/:connectionId/issue/:issueKey/close) sets Status to DONE and clears OriginalStatus for both the issue and the incident record, but it never sets ResolutionDate. The DORA FDRT metric is calculated from incidents.resolution_date, so an incident closed this way just never shows up in that dashboard - which lines up with what you found, and why manually updating resolution_date in the DB fixes it.
I think the fix is pretty contained: when closeIssue sets status to DONE, it should also set ResolutionDate to the current time if it's not already set (for both the issue and incident records), and recalculate LeadTimeMinutes the same way postIssue already does.
I'd be glad to put a PR together for this if no one's working on it yet. Let me know if that approach makes sense, or if you'd rather allow the resolution date to be passed in explicitly on the close call instead of just defaulting to now.
Activity
pavankadabala-png commentedon Jun 12, 2026
I had a look through the webhook plugin code to figure out why this is happening.
In
backend/plugins/webhook/api/issues.go, thecloseIssuefunction (the one behindPOST /plugins/webhook/:connectionId/issue/:issueKey/close) setsStatustoDONEand clearsOriginalStatusfor both the issue and the incident record, but it never setsResolutionDate. The DORA FDRT metric is calculated fromincidents.resolution_date, so an incident closed this way just never shows up in that dashboard - which lines up with what you found, and why manually updatingresolution_datein the DB fixes it.I think the fix is pretty contained: when
closeIssuesets status toDONE, it should also setResolutionDateto the current time if it's not already set (for both the issue and incident records), and recalculateLeadTimeMinutesthe same waypostIssuealready does.I'd be glad to put a PR together for this if no one's working on it yet. Let me know if that approach makes sense, or if you'd rather allow the resolution date to be passed in explicitly on the close call instead of just defaulting to now.