Wrong exported issues as CSV when filtering by epic id
When filtering a project issues list by epic there is a mismatch between the issues the user sees in the list and the ones exported as CSV. The list is also showing issues that are children of subepics of the given epic.
How to reproduce
- Create an epic X with a sub-epic Y
- Create an issue A and assign to epic X
- Create another issue B and assign to epic Y
- Go to the project issues list and filter the list by Epic X
- Click to export as CSV and wait for the email
Only issue A is present at the CSV file.
Possible solutions
Issues list has includeSubepics
GraphQL parameter set to true
by default, we could set the same parameter on Issues::ExportCsvService
.
As bonus, it would be nice to make sure all default parameters are coming from the same source both when exporting and showing issues list to avoid regressions.