Any examples of summing up story points from stories to epics using {{lookupIssues.Story Points.sum}
Asked by Neil Wills:

I have been unable to get the following to work,

    {{lookupIssues.Story Points.sum}} 

* Story is the trigger when story points are changed
* Get the Parent Epic
* Lookup the issues related to Epic - sum points using
* I see that the Epic is modified but set to none therefore it is not summing the values, and I believe this is because no stories issues are returned

    {{lookupIssues.Story Points.sum}}


Answers:
author: Eli Solutions Team -Eli Solutions-
body: [@Neil Wills](/t5/user/viewprofilepage/user-id/4327689) :

Take a look at this recent post as well. It provides you with more rules to ensure that epics story points are updated when stories with story points get linked to an epic.

Link: <https://community.atlassian.com/t5/Automation-discussions/Jira-Automation-Complete-Video-Guides-on-how-to-Sum-Up-Story/td-p/1741948>


author: Eduardo
body: Hi. Can anyone help me determine how to update the "story points" and ?preliminary estimate? fields in an epic without automation?

For example, the epic have several stories in accepted, in design, in progress, not designed status. Of these, which do I need to consider to add or subtract story points?

Thanks

comments: author: Bill Sheboy
body: Hi [@Eduardo](/t5/user/viewprofilepage/user-id/4585733) -- Welcome to the Atlassian Community!

What is your concern about making the updates without automation?

For your question about "which do I need to consider to add or subtract story points", that would be up to you, based upon what problem you are trying to solve by summing the values, and your choices about your workflow. For example, do you want the measure to be of "total points in the children" or "completed points in the children", etc.

Kind regards,  
Bill


author: Eduardo
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) thank you!

I guess I?m trying to figure out how the Epic ended up with two story points if the preliminary estimate is ten SP. There are seven user stories that sum up 31 story points, so I think should subtract the Epic story points field but not sure what would be the right number there.

Three user stories are accepted, one is in progress, and three in designed status.

Thanks for following up,

Eduardo


author: Bill Sheboy
body: Hi, Eduardo.

There is nothing built-in to automatically sum story points for an epic...that is something people add with automation, scripting, addons, or by manually summing up. Please take a look a the epic's change history to determine how the points were added (that is, who did it). That should point you toward where to look for the cause of the error you are seeing.

Kind regards,  
Bill


author: Eduardo
body: Understood

Thank you very much,

Eduardo


author: Bill Sheboy
body: Linking together these two same questions for this topic:

<https://community.atlassian.com/t5/Automation-questions/How-do-you-sum-up-story-points-to-the-epic-using-jira-automation/qaq-p/1731595>


author: Curt Holley
body: Hi [@Neil Wills](/t5/user/viewprofilepage/user-id/4327689)

Can you share a screenshot of your rule as well as any audit log entries to help the community try and assist you please?

What JQL are you using for your lookup issues action?

comments: author: Neil Wills
body: I was able to get the automation going using the following:

![ruledefinition5-functional.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/150256i0D5F1D194A2C0875/image-size/large?v=v2&px=999 "ruledefinition5-functional.JPG")


author: Curt Holley
body: Nice!!


author: Neil Wills
body: See solution [How do you sum up story points to the epic using j... (atlassian.com)](https://community.atlassian.com/t5/Automation-questions/How-do-you-sum-up-story-points-to-the-epic-using-jira-automation/qaq-p/1731595?utm_campaign=&utm_content=post&utm_medium=email&utm_source=atlcomm)


author: Neil Wills
body: This was working and now it seems that it may be summing he points for all stories and not just the points related to the epic.

Be forewarned as my rule updated all the epics and they have large story points.


author: Bill Sheboy
body: Hi [@Neil Wills](/t5/user/viewprofilepage/user-id/4327689)

Has your rule changed or does the audit log show any other symptoms? And perhaps consider posting an image of your current rule to see how the community can help. Thanks!

Best regards,  
Bill