Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Sum up Story points to epic


I have many customers that are looking to sum up Story points and other custom number fields from stories to their epics.

Waiting for this feature to be deployed:

The current status is "deployed to cloud" - is it available for use on Jira cloud? what's the chosen code for that?



8 answers

This rule works on my case and it may help you.








Sum the Story Points



Edit the Epic Story Points 


Append the comment


This works for me. Thank you. 

One question though. How to apply this to more then 1 epic?

The way Carlos has this set up is it works for any epic within the given project you're working with and keys off of as soon as a story point value has been updated that has an epic link.


Well done Carlos, thank you for figuring out this functionality. 

 @Carlos - Thank you for the screenshots, however i get an error when I use the syntax for Epic link. Any thoughts, please. 

@Carlos Treminio 


For me this solution unfortunately did not work, the automation even runs successfully, but even if the stories are with values ​​greater than 0, the automation is always 0 in the epic, it doesn't work.

Can you help me?


Captura de Tela 2021-11-19 às 11.38.52.pngCaptura de Tela 2021-11-19 às 11.39.03.pngCaptura de Tela 2021-11-19 às 11.39.26.png

Like Christine Lee likes this

@Andreza Santostry using "Parent" instead of "Epic Link" in the Lookup Issues component. I had the same zero sum problem, and this change worked for me.

@Carlos Treminio your suggestion works a treat.  Was struggling to get this working so thank you for the assist

Hi folks - I implemented Carlos' solution and it works like a charm! Thanks Carlos! :) 

Having said that, I ran into a couple of scenarios where the Story Point totals get misaligned...

  1. If you simply remove a Story from an Epic.
  2. Or, if you change the Epic Link field on an existing Story that already has the Story Point set. Whether you're setting the Epic Link for the first time, assigning it to another Epic, or simply removing it.

In each of the above cases, the Story Point totals do not get updated on the Epic(s).  

So, to address these use cases, I created an additional Automation that gets triggered when a Story is updated. It checks to see if the Epic Link was changed, captures the changed To/From values and recalculates the Story Point totals accordingly. 

Here are the Automation settings I used...

  • Trigger: Issue Updated
  • Field Condition: Type=Story
  • Field Condition: Story Points is not empty
  • Advanced Compare Condition: If {{changelog.Epic Link}} does not equal Empty
  • Create Variable Action
    • Name: EpicLinkChangedTo
    • SmartValue: {{changelog.Epic Link.toString}}
  • Create Variable Action
    • Name: EpicLinkChangedFrom
    • SmartValue: {{changelog.Epic Link.fromString}}
  • If/Then Condition: If {{EpicLinkChangedTo}} does not equal empty
    • Branch Rule / Related issues:
      • Type: JQL
      • JQL: Key={{EpicLinkChangedTo}} 
    • Lookup Issues Action:
      • JQL: "Epic Link"={{EpicLinkChangedTo}}
    • Edit Issue Action:
      • Story Points: {{lookupIssues.Story Points.sum}}
    • Add Comment Action
      • {panel:bgColor=#e3fcef}
        *{{initiator.displayName}}* has updated the *Epic Link* on {{triggerIssue.key}} so the total Story Points on this Epic has been adjusted to *{{lookupIssues.Story Points.sum}}*.
  • If/Then Condition: If {{EpicLinkChangedFrom}} does not equal empty
    • Branch Rule / Related issues:
      • Type: JQL
      • JQL: Key={{EpicLinkChangedFrom}} 
    • Lookup Issues Action:
      • JQL: "Epic Link"={{EpicLinkChangedFrom}}
    • Edit Issue Action:
      • Story Points: {{lookupIssues.Story Points.sum}}
    • Add Comment Action
      • {panel:bgColor=#e3fcef}
        *{{initiator.displayName}}* has updated the *Epic Link* on {{triggerIssue.key}} so the total Story Points on this Epic has been adjusted to *{{lookupIssues.Story Points.sum}}*.

I hope this helps!!!  ...Cheers! :)

@Guy Anela 

Thank you very much for this detailed automation.

One question though: when I create the Branch Rule inside the "If/Then" block, it opens a new nested branch ("For JQL"). Should the following statements be inside that nested branch?


Hi @Didi Goldbart - Yes, that is correct.'ll have two separate IF blocks, one for the EpicLinkChangedTo (just as you depicted above), and another for the EpicLinkChangedFrom. Here's a screenshot of the entire Automation Rule...



Also, I ended up adding a 3rd Automation to handle the use case where a child ticket gets Deleted. Here's a screenshot of that Automation Rule as well...


I hope these help. Cheers!

Like Didi Goldbart likes this

@Guy Anela  - This is very helpful, thank you very much (great catch adding the deleted child rule)!

I'm having some issues with the 2nd automation, its seems that an error occurred. I went over the definitions and they seems correct. Do you have any idea how do I inspect those errors? I couldn't find a log or other entry with the error details.

Hi @Didi Goldbart - Glad it was helpful.

As far as the error, you should be able to track things down by viewing the Audit log. You can expand the Show more information for the specific execution and see the Conditions that were met and the Actions that were taken...


Like Didi Goldbart likes this
1 vote

Hi @Elad Ben-Noam ,

Thanks for your message. John from the automation team here. 

This new feature has indeed shipped last week. We are just putting a blog together right now to inform customers. 

We will also be running through this new feature in a webinar on June 11th: 

Below is the smart value you could use. However, keep in mind that at the moment it will only work for summing up subtasks to the parent rather than stories to the Epic. 

2156cf3c-f624-42ab-b451-a4fc87777e9c.pngHope that helps but any questions, just let me know.


That is great! @John McKiernan when is it planned to add support for summing up values from stories on epic level?

Like edwardotis likes this

Glad it solves a problem @Sebastian Nordin !

I haven't got a date for this just yet but will make sure to update this page once that ships :) 

Like Sebastian Nordin likes this

Hi John  - Any updates on when JIRA will support summing up values from stories/tasks/sub-tasks on epic level?

Like # people like this

I'm afraid not @Sameer P though if you check out the comments on this post from the engineer who built it, you might find a workaround:

@John McKiernan Can you please give a 2022 update on this feature? I tried your smart sum on a simple parent/child task relationship and it fails with the error: is not a number

@edwardotis are you looking for the feature that will sum up from stories to epics? 

I am just implementing something like this for my client. The original automation outlined by @Carlos Treminio worked perfectly for me!

I added one additional condition though as my client wanted to exclude any issues that are in the "Done" status category. Thought I'd share in case others are interested in the same use case.

In order to achieve this I:

  1. Added the "Status" field to the automation trigger to monitor it for changes
  2. Updated the "Then: Lookup issues" JQL to be "Epic Link" = {{issue.key}} and statusCategory != Done

This will monitor the Status of issues and exclude the story points of those issues that are closed.

I followed this video and the automation kicked in but for some reason it makes the story points in the Epic 20 points regardless of how many points I put in the tasks. Any ideas?

In the Epic I get 20 points, so I went through the issues and added silly points like 88 and 23 and I get the correct number in the 'estimate' field but not in the Story Point field. 


story points 20.pngstory points 207.png

0 votes

removed - posted mistakenly

Epic status by Story Points report in Jira that can also be displayed in Confluence

  • I can solve this in Jira Server edition.  But you need to have deployed Dataplane reporting plugin
  • See bottom of this link with "Alex Fairweather" reply and configuration instructions

In the meantime, you can see total number of story points on an epic by following these steps:

  1. From your board, click Backlog.
  2. Click Epics panel.
  3. Click on an epic. You will see total story points for all tickets in the selected epic that are in the same Jira project as the epic. Any ticket with a different issue key will not be included in the total. In the example (screenshot) MGRMODS-208 has 9 issues but only 4 are also MGRMODS issues and those tickets total 26 story points.

Epic total points.png

John McKiernan Can you please confirm the above is the right way to get the total story points on an epic?

I don't see this view anymore either :(

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Atlassian Automation

Jira Automation: Sum Up Story Points Roundup (Initiatives -> Epics -> Story/Tasks -> Subtasks)

Hi Everyone, In this roundup we combine all the jira automation rules to sum up story points across different issue types. We start from the lowest level, summing up story points from sub-tasks t...

1,848 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you