Select multiple issues on scrum backlog and sum story points?

I have users reporting to me that they used to be able to do the following:

When looking at the backlog on a scrum board, they could ctrl + click multiple stories/issues and see the total number of story points of all the selected issues.

I've tried doing this in JIRA Agile... I can ctrl + click multiple issues, but I don't see any indicator or sum showing the total story points for selected issues.

Was this a feature that previously worked in JIRA Agile but has been removed?

(I know we can drag and drop the sprint indicator line up and down... but my users specifically said they could select a few stories and see the sum of story points).

Thank you~!

 

1 answer

1 accepted

So, I can't find anything that does this, so I wrote my own.

 

Take this jQuery:

var sum = 0
var divcount = 0
$(".ghx-selected").each(function() {
    
    //for each div with ghx-selected as a class, find all spans with "Story Points" as the title
    $(this).find("span").each(function(){
        var spanTitle = $(this).attr("title")
        var spanText = $(this).text()
        if(spanTitle == "Story Points"){
            divcount += 1
            if(!isNaN(spanText) && spanText.length!=0) {
                var spanValue = parseFloat(spanText)
                if (!isNaN(spanValue)){
                    //alert("Sum is " + sum +"\nspanValue is " + spanValue)
                    sum += spanValue;
                    
                }
            }
        }
    });  
});
alert("Selected Stories: " + divcount + "\n" + "Story Point Sum: " + sum)

 

Use this bookmarklet creator:

http://bookmarklets.org/maker/

Choose:

  1. URL-encoded reserved characters
  2. Isolate within an unnamed function
  3. Make sure jQuery 1.7 or higher is available

 

Get the bookmarklet code:

 

javascript:void%20function($){var%20loadBookmarklet=function($){var%20sum=0,divcount=0;$(%22.ghx-selected%22).each(function(){$(this).find(%22span%22).each(function(){var%20spanTitle=$(this).attr(%22title%22),spanText=$(this).text();if(%22Story%20Points%22==spanTitle%26%26(divcount+=1,!isNaN(spanText)%26%260!=spanText.length)){var%20spanValue=parseFloat(spanText);isNaN(spanValue)||(sum+=spanValue)}})}),alert(%22Selected%20Stories:%20%22+divcount+%22\nStory%20Point%20Sum:%20%22+sum)},hasJQuery=$%26%26$.fn%26%26parseFloat($.fn.jquery)%3E=1.7;if(hasJQuery)loadBookmarklet($);else{var%20s=document.createElement(%22script%22);s.src=%22//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js%22,s.onload=s.onreadystatechange=function(){var%20state=this.readyState;state%26%26%22loaded%22!==state%26%26%22complete%22!==state||loadBookmarklet(jQuery.noConflict())}}document.getElementsByTagName(%22head%22)[0].appendChild(s)}(window.jQuery);

 

Create your bookmark and use it

The following picture shows 4 stories selected and the sum of the story points in a popup:

sum_story_points.png

 

 

That's great! I've been looking for this feature in vain, thanks!

It would be nice if Atlassian added the story point count in JIRA though

 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,147 views 13 19
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot