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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to sum Story Points in list of issues with Automation for JIRA?

I need to sum the story points in a list of issues on the send email action within automation for jira. Some of the issues will have 0 story points and some will have many. 

I have tried {{issues.size}} and {{issues.story points.size}} but they get the number of issues and number of issues with non 0 story points rather than adding the number of story points.

2 answers

1 accepted

1 vote
Answer accepted

Found my own answer, for those in the future:

{{#=}}{{issues.Story Points.join(" + ")}}{{/}}

 

The {{issues.Story Points.join(" + ")}} gets all of the story points and puts them in an equation like this: 1.0 + 1.0 + 1.0 + 2.0 + 2.0 + 3.0 + 1.0 + 3.0

 

Then the {{#=}} ....... {{/}} does the math on that equation to print out 14 in the end.

Thanks internet!

Hey @ccaprio Are you able to share your automation for Jira setup where you used this logic? I have a similar use-case and I'm having trouble applying your answer in my project.  Thx

I actually dont have access to that JIRA anymore but it ran a branch using jql to get a list of issues and then had this logic in the action tag after it. You also had to make sure the checkbox for handle all issues at once or something similar to that in the branch section is checked. Hope you figure out your problem!

Nowadays you can simply: {{issues.Story Points.sum}}

 

Documentation: Smart values - lists - list.sum

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

386 views 3 17
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