Incorrect number of issues in Fixed burndown chart

Summary

The number of issues displayed in the fixed burndown chart is inconsistent with the actual number of issues

Steps to reproduce

  1. Goto Issues->Milestones
  2. Observe the number of open issues in the fixed burndown chart
  3. Observe the number of open issues in the list underneath
  4. The numbers do not match

Example Project

%6.0.0-rc1 in kicad/code/kicad

What is the current bug behavior?

Displays an incorrect number of open issues.

What is the expected correct behavior?

Display the correct number of open issues

Relevant logs and/or screenshots

Example from %6.0.0-rc1 in kicad/code/kicad The chart shows 390 issues open but in fact there are 125 + 116 = 241 issues open: image

Output of checks

This bug happens on GitLab.com

Possible fixes

Missing system notes

Burnup data is generated from system notes. Currently:

  • Assignee system note is missing when creating issue
  • Created by system note is missing when creating issue
  • When creating an issue and setting both milestone and epic, the milestone system note never shows up.
  • When creating an issue and setting the milestone along with other metadata except for epics, the milestone system note shows up

So for every issue that is created with both a milestone and an epic set, the milestone system note is missing and thus the burndown chart will not accurately reflect what is set in the milestone.

Moved issue is not tracked as closed.

another scenario where a closed issue event might be missing:

  • when an issue is moved to another project, I think we are not creating a "closed" issue event which might be the cause for charts diverging from actual data.

  • Example of an moved issue Screenshot_2021-06-04_at_19.31.04

  • related chart: Screenshot_2021-06-04_at_19.34.33

Edited by Alexandru Croitor