We suggest trying a slightly adjusted formula, which will look up if the count of created Stories equals the count of closed Stories & if this criteria is met, it will return “1”. This will allow you to get the list of Epics that have only closed stories.
-- Sum of specified conditions for Issues that are of type 'Epic' and have a 'High' or 'Critical' priority
Sum(
Filter(
Descendants([Issue].CurrentHierarchyMember, [Issue].[Issue]),
-- Filter condition for 'Epic' issues with 'High' or 'Critical' priority
[Measures].[Issue type] = "Epic" AND
(
[Measures].[Issue priority] = "High" OR
[Measures].[Issue priority] = "Critical"
)
),
-- Conditional check if the number of 'Story' type issues created equals the number closed
CASE WHEN
(
[Issue.Epic].[Epic].GetMemberByKey([Issue].CurrentHierarchyMember.Key),
[Issue Type].[Story],
[Status].[CustomClosed],
[Measures].[Issues created],
[Issue].Currenthierarchy.DefaultMember
) =
(
[Issue.Epic].[Epic].GetMemberByKey([Issue].CurrentHierarchyMember.Key),
[Issue Type].[Story],
[Status].[CustomClosed],
[Measures].[Issues closed],
[Issue].Currenthierarchy.DefaultMember
)
THEN
1
END
)
Thanks alot for your support. Your solution worked for only Closed stories
Furthermore I wanted also to to get the list of Epics that have only closed/resolved stories. However the solution does not seem to work for only closed/resolved stories. The measure will also filter Epics that have stories with status not in (resolved/closed)