Hi all,
I'm setting up a project with the following hierarchy:
- Epic A
- Story A
- Sub-task 01
- Sub-task 02
- Sub-task 03
- Story B
- Story C
Epic A's status is In Progress.
Story issues are linked through dependencies: Story C depends on Story B which depends on Story A.
Sub-tasks under each Story are also linked through the same dependency structure. They are not linked across stories.
The entire WBS Gantt chart is pulling information from an issue filter that searches for all open issues in one project as follows:
issue not in templateRelatedTickets() AND project = PROJECT AND resolution = Unresolved ORDER BY key ASC
Problem:
- When the epic and child issues are setup everything is ok:
- Start Date is the same on Epic A and Story A;
- End Date is the same on Epic A and Story C
- Epic A Duration is the sum of all Story issues' Duration
- Epic A Percent Done is e.g. 10% when there's some work on Sub-task 01 & 02; Story A's Percent Done is e.g. 50%.
- When Story A and all sub-tasks are 100% done and set as Closed:
- Epic A's Start Date changes to Story B's start date
- Epic A's Duration reduces to the sum of Story B and Story C
- Epic A's Percent Done goes back to 0%

In this screenshot, I have the last Story (with sub-tasks) of the process and Epic is adjusting for those values.
This is what I see from the Project's Gantt chart:

Goal:
- Epic A's Start Date should always show the first issue's Start Date in the hierarchy (Sub-task 01, in this case), even if that issue is set to Closed and 100% done
- Epic A's End Date should always show the last issue's End Date in the hierarchy (Sub-task 06, in this case), even if that issue is set to Closed and 100% done
- Epic A's Duration should show the sum of days/weeks/months the project was worked on
- Epic A's Percent done should remain consistent and independent of the child issues' status.
This behavior also happens if the source issue filter is set for any resolution and in the Project's WBS Gantt chart with all issues (open or closed).