Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Create Measure using Filter by Fix Version

Hi!

I have the following code. It sums the story points of all issues whose Planned End is before the Sprint End Date. Now, I want to add a new condition: this sum should only be done if the issue fix version is different than the one choosed in the picture.

How to proceed?

Sum(

Filter(

DescendantsSet([Issue].CurrentMember,[Issue].[Issue]),

Not IsEmpty([Measures].[Issue story points])

AND

DateCompare([Issue].CurrentMember.Get('Planned End'),[Sprint].CurrentMember.Get('End date')) < 1

),

CASE WHEN

[Measures].[Issues created]>0

THEN

[Measures].[Issue story points]

END

)


2023-10-04 16_10_40-Edit Issue _ BHPJEST-2787 - JIRA CORP EMBRAER.png


1 answer

1 accepted

The way that worked for me was this: 


I have created a measure named Story Points of Unseen Issues

Filter(
DescendantsSet([Issue].CurrentMember,[Issue].[Issue]),
Not IsEmpty([Measures].[Issue story points])
AND
DateCompare([Issue].CurrentMember.Get('Planned End'),[Sprint].CurrentMember.Get('End date')) < 1
AND
InStr([Issue].CurrentHierarchyMember.Get('Fix version IDs'), '82048') > 0
),
CASE WHEN
[Measures].[Issues created]>0
THEN
[Measures].[Issue story points]
END
)

And then I have subtracted it from the total story points:

Sum(
Filter(
DescendantsSet([Issue].CurrentMember,[Issue].[Issue]),
Not IsEmpty([Measures].[Issue story points])
AND
DateCompare([Issue].CurrentMember.Get('Planned End'),[Sprint].CurrentMember.Get('End date')) < 1
),
CASE WHEN
[Measures].[Issues created]>0
THEN
[Measures].[Issue story points]
END
) - [Measures].[Story Points of Unforseen Issues]

If there is a better way, tell me!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events