Hi,
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: https://codebarrel.atlassian.net/browse/AUT-476
The current status is "deployed to cloud" - is it available for use on Jira cloud? what's the chosen code for that?
Thanks,
Elad.
Community moderators have prevented the ability to post new answers.
This rule works on my case and it may help you.
This works for me. Thank you.
One question though. How to apply this to more then 1 epic?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Carlos - Thank you for the screenshots, however i get an error when I use the syntax for Epic link. Any thoughts, please.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Carlos Treminio your suggestion works a treat. Was struggling to get this working so thank you for the assist
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Carlos Treminio Thank you for you effort. I followed the same instruction but Epic story point just changed from None to Zero when I changed the one of the story's point.
The automation status is success but Its not summing up the point from stories to Epic.
Can you help with this. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vasanth kumar -Try changing the JQL in your Lookup issues Action to...
"Epic Link"={{issue.key}}
There are other scenarios to be considered as well which I've commented on below. Hope they help. Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This still works, thank you so much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
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...
I hope this helps!!! ...Cheers! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Didi Goldbart - Yes, that is correct. ...you'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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Guy Anela
Thanks a lot for this, it's awesome.
I am getting an error that I am unable to debug, although the automation is doing what it should
and this is my automation, am I missing anything here? thanks a lot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Nour Durra - You're more than welcome! :)
As far as the error, which For JQL Branch is it failing in? There are two, one for the EpicLinkChangedFrom and the other for EpicLinkChangedTo. I would suggest adding some Logging Actions to log the variable values getting passed before and after it enters the loop. Like this...
Hopefully the logging will give you some clues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you found a solution to your problem. I also tried the second Automation Rule and get the same error as you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm also having the same issue. It seems like the comparison of {{changelog.Epic Link}} does not equal Empty is not working as expected
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I only get this error when I remove an Epic Link from a ticket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah figured it out. Silly mistake. When you are comparing the value of {{changelog.Epic Link}} you don't actually type "Empty" you just leave the field empty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Guy Anela
For me, the {{changelog.Epic Link.fromString}} is not filled with the preceding epic link. It prevents me to do calculations for the original epic (prior to changing the issue's epic link).
As Atlassian is busy with changes regarding the parent / parent link / epic link, I've tried multiple ways to get this going (see below). Sadly to no avail yet (all return null)
{{changelog.Epic Link.fromString}}
{{changelog.parent.fromString}}
{{changelog.parent link.fromString}}
{{#changelog.Epic Link}}{{fromString}}{{/}}
{{#changelog.parent}}{{fromString}}{{/}}
{{#changelog.parent link}}{{fromString}}{{/}}
Am I doing something wrong, is there a new syntax ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just found this handy article https://confluence.atlassian.com/jirakb/automation-smart-value-to-fetch-the-current-and-the-last-changed-parent-key-1369637055.html which explains how to get the new and previous parent
To: {{changelog.IssueParentAssociation.toString}}
From: {{changelog.IssueParentAssociation.fromString}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the meantime, you can see total number of story points on an epic by following these steps:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
John McKiernan Can you please confirm the above is the right way to get the total story points on an epic?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't see this view anymore either :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So I've had a version of this automation running for a while now for my teams, however just recently there's been a discovery that it's undercounting story points because we have Epics with >100 child issues...meaning we are hitting that 100 issue query limit in the Lookup component. Does anyone have any ideas on how we might be able to circumvent that issue or how we might be able to calculate differently as a workaround?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All - In regards to summing up Story Points for an Epic, a few teams just reported to me that the Story Points are being double counted on the Release Burndown Report now (once for the Stories and again for the summed up value on the Epic).
Have any of you come across this? If so, how are you handling it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just a heads up, we addressed this by removing the Fix Version values from the Epics. It's not critical for our teams to track the Fix Version at the Epic level as long as its tracked on the child issues (Stories, Bugs, Tasks, etc.).
Once the Fix Version values were removed from the Epics, the Release Burndown Report calculated the Story Points correctly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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: https://www.atlassian.com/webinars/software/how-to-supercharge-your-automation-in-jira-cloud
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.
Hope that helps but any questions, just let me know.
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is great! @John McKiernan when is it planned to add support for summing up values from stories on epic level?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John - Any updates on when JIRA will support summing up values from stories/tasks/sub-tasks on epic level?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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: https://community.atlassian.com/t5/Automation-articles/How-to-sum-up-logged-hours-using-automation-in-Jira-Cloud/ba-p/1409115
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JIRA has a template for Parent (FKA Epic) story point updating. You can start with this and make whatever updates you want to it. I found it helpful with the new paradigm where Parent is replacing Epic, Epic Link, and Parent Link.
It still needs to be copied and adjusted to handle updating the former Parent when a Parent is changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a plugin which shows total story points and total time estimate for epic https://marketplace.atlassian.com/apps/1231982/epic-insights-issue-view-for-jira?tab=overview&hosting=cloud
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Guy Anela I had a few questions about your If/Then statement. When I attempted the If: matches, do I want to Run actions if... All conditions match or At least one condition matches
And my second question, when I tried to just copy the If: matches {{EpicLinkChangedTo}} to create the If: matches {{EpicLinkChangedFrom}}, the automation created a Else-if: matches instead of just an If: match. I tried editing it and looking for other options for If but didn't see any other options.
Any ideas on what I did incorrectly? Here is the part of the automation.
Here is my complete rule
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dawn Rodney - In regards to your first question, there's only 1 Condition in that IF block so it shouldn't matter. :) I would just leave it set to "All conditions match". Now, if you later decide to add additional Conditions, then you would want to choose the appropriate one.
In regards to your second question, I would manually add the IF Condition instead of copying the original one. You would just click on the New Component at this level...
If you still have the Else-if there, you should be able to drag/drop its internal components into the new If. Once you're done moving them, you can delete the Else-if.
I hope this helps. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Guy Anela Yes, thank you. That was super helpful. I wasn't able to "move" it but I just deleted it and add a new component. It is really odd, that I can't copy it and then edit it. Oh the fun quirks of Jira administration... ;-)
I do have edge case that I am in the process of testing. Wondering if anyone ran into this one too.
If I update the Epic Link field in a ticket (that is currently in an Epic) and just update the field by selecting a new Epic in the drop-down. I DON'T actually clear the Epic Field before adding the additional Epic, it then fails. I assume that Jira does not seem to log that the Epic Field is not empty??? :shrug: Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
This will monitor the Status of issues and exclude the story points of those issues that are closed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
removed - posted mistakenly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Epic status by Story Points report in Jira that can also be displayed in Confluence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.