Given:
A process instance with a resolved and open incident on the same activityInstance
When:
I create an incident count report with either a resolved or open flow node filter
Then:
The incident counts span both resolved & open incidents
Expected:
the counts should only contain the incident instances with the filtered state
Hint:
Afaiu the issue is that GroupByIncidentFlowNode currently does not contain a filter aggregation to apply the view level filter, so effectively there is no view level filter applied, see attached incidentReportWithStateFilter.json. I manually added a filter aggregation in incidentReportWithStateFilter_aggregationFilter.json which then yielded expected results.