Skip to content

Instantly share code, notes, and snippets.

@metaodi
Created July 7, 2015 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metaodi/432f4988974240bad101 to your computer and use it in GitHub Desktop.
Save metaodi/432f4988974240bad101 to your computer and use it in GitHub Desktop.
Story Point Count in Confluence when using the Jira macro
<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