The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Summarize story points of open issues in parent

Nicole Brückner
December 13, 2023

Dear community,

I already found the automation rule for summarizing story points into the parent task. This works totally fine (For parent in edit field {{subtasks.Story Points.join(" + ")}}). 

Is there any possibility to sum those story points, where the issue is still open? 

Best regards-,

Nicole

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 13, 2023

Hi @Nicole Brückner 

What do you mean by "still open"?  Do you mean "not done"?

If so, an alternative method to what you show is to use smart value, list filtering with your math expression.  For example,

{{#=}}0{{#issue.subtasks}}{{#if(not(equals(status.name,"Done")))}}+{{Story points|0}}{{/}}{{/}}{{/}}

How this works:

  1. The subtasks are iterated over
  2. And a conditional filter checks for any where the status is not "Done" (Please adjust to match your status name.)
  3. Returning only the matching story points, with a default value of 0
  4. Finally wrapping that entire result as a math expression, with a default value of 0

Please look here to learn more about those techniques:

Kind regards,
Bill