Duration of incident doesn't reflect in correctly in Graph bar in Status Page #42

Closed
opened 2026-04-05 16:18:45 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @MA-Saad on 3/8/2026

Describe the bug
When Created historical incident and resolve it on time or create incident timeline state it calculate the resolved time correctly in backend but it doesn't reflect the correct duration spent between creation and resolved, instead it calculate the duration based on action taken by agent

To Reproduce
Steps to reproduce the behavior:

  1. Go to "incident"
  2. Click on "Declare Incident"
  3. Write "Title" & "Description" for the incident
  4. Change the "Declared At" to previous time not the actual time (EX: Choose time to 3/6/2026 12:00:00 PM)
  5. Select "Incident Severity"
  6. Select "Incident State"
  7. Select Monitors that reflected in any status page
  8. Select Change Monitor Status to "Any State except resolved"
  9. Skip other steps till you create the incident
  10. Go to "Incident"
  11. Select Created "Incident"
  12. Click on "State Timeline"
  13. Click on "Create Incident State Timeline"
  14. Change "Incident Status" to "Resolved"
  15. Change "Declared At" to Previous time not actual time (EX 1 day after creation of incident >> 3/7/2026 12:00:00 PM)
  16. Mark check on "Notify Status Page Subscribers"
  17. Click "Create Incident State Timeline"
  18. Go To Status Page where the selected monitoring you created the incident for it
  19. Click on "View Status Page"
  20. Click on "Status Page Preview URL"
  21. Check the bar for the day you created the incident for
  22. See the screenshots

Expected behavior

The Graph bar should show the exact duration based on the following calculation:
{Incident State} for = Resolve At date (Incident state change) - Declared At Date

Screenshots

Image Image Image

Desktop

  • OS: [Windows]
  • Browser [Chrome]
  • Version [Version 145.0.7632.160]

Deployment Type
self hosted (API: 9.5.13)

Additional context
The Graph bar of status page should show the incidents duration when declared and when resolved not when the action taken by the agent to resolved or change the state of incident for the monitoring

*Originally created by @MA-Saad on 3/8/2026* **Describe the bug** When Created historical incident and resolve it on time or create incident timeline state it calculate the resolved time correctly in backend but it doesn't reflect the correct duration spent between creation and resolved, instead it calculate the duration based on action taken by agent To Reproduce Steps to reproduce the behavior: 1. Go to "incident" 2. Click on "Declare Incident" 3. Write "Title" & "Description" for the incident 4. Change the "Declared At" to previous time not the actual time (EX: Choose time to 3/6/2026 12:00:00 PM) 5. Select "Incident Severity" 6. Select "Incident State" 7. Select Monitors that reflected in any status page 8. Select Change Monitor Status to "Any State except resolved" 9. Skip other steps till you create the incident 10. Go to "Incident" 11. Select Created "Incident" 12. Click on "State Timeline" 13. Click on "Create Incident State Timeline" 14. Change "Incident Status" to "Resolved" 15. Change "Declared At" to Previous time not actual time (EX 1 day after creation of incident >> 3/7/2026 12:00:00 PM) 16. Mark check on "Notify Status Page Subscribers" 17. Click "Create Incident State Timeline" 18. Go To Status Page where the selected monitoring you created the incident for it 19. Click on "View Status Page" 20. Click on "Status Page Preview URL" 21. Check the bar for the day you created the incident for 22. See the screenshots **Expected behavior** The Graph bar should show the exact duration based on the following calculation: {Incident State} for = Resolve At date (Incident state change) - Declared At Date **Screenshots** <img width="1540" height="478" alt="Image" src="https://github.com/user-attachments/assets/3b3da380-be6f-4381-b8c7-a81526f70f81" /> <img width="1466" height="542" alt="Image" src="https://github.com/user-attachments/assets/67afc5a7-d3aa-4d52-a84a-ecfc7610d19d" /> <img width="1462" height="687" alt="Image" src="https://github.com/user-attachments/assets/06b7d2c6-0475-4375-b730-4d6706cc6ebf" /> **Desktop** - OS: [Windows] - Browser [Chrome] - Version [Version 145.0.7632.160] **Deployment Type** self hosted (API: 9.5.13) **Additional context** The Graph bar of status page should show the incidents duration when declared and when resolved not when the action taken by the agent to resolved or change the state of incident for the monitoring
MrUnknownDE added the bugbugbugbugbugbugbug labels 2026-04-05 16:18:45 +02:00
Sign in to join this conversation.
No Label bug bug bug bug bug bug bug
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#42