Created
July 7, 2015 12:53
-
-
Save metaodi/432f4988974240bad101 to your computer and use it in GitHub Desktop.
Story Point Count in Confluence when using the Jira macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="count-1"></div> | |
<script> | |
window.setTimeout(function() { | |
var sum = 0; | |
$('table:eq(0) tr[class^="row"]').each(function() { | |
storyPoint = jQuery(this).find("td:eq(4)"); | |
value = parseInt(storyPoint.text()); | |
if (! isNaN(value)) { | |
sum += value; | |
} | |
}); | |
jQuery('#count-1').html('<strong>Total Story Points:</strong> ' + sum) | |
}, 4000); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment