Diagram visualising tickets within an epic

Hi,

in my team, we’re using GitLab issues system.
Often, when epic is created, we’d like to agree on some deliveries within an epic.

Eg.
issues 1, 9, 15 belongs to delivery 1.
issues 2, 3, 13 belong to delivery 2.
issues 5, 10, 12 belongs to delivery 3.

Delivery being set of issues that make shippable feature or part of the feature. You could call it an iteration.

For stakeholder, we’d like to be able to draw a diagram representing that approach. Something simple, like this:

don’t mind the arrows. One box = one issue within an epic. Note that boxes can have different colors depending on their state. State can also be deduced from labels.

Is there an easy way to automatically create diagrams like that? After marking which issue belongs to which delivery? (could be done with labels or whatever else)

I can imagine it should pretty easy to be done with GitLab API, mark with labels which tickets belongs to which iteration/delivery, retrieve all issues with epic, their labels and draw diagram using code.

I’ve seen also some diagrams that can be done using Mermaid, PlantUML, Krok but not sure if they can dynamically detect the issues within an epic and their statuses.

Don’t want to invent wheel though, hence asking here. Maybe there’s any easier way to do that than using GitLab API. I don’t need ready solution, would be great if somebody could point me in the right direction.