Skip to content

Instantly share code, notes, and snippets.

@iamnimnul
Last active April 3, 2018 13:45
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 iamnimnul/1ae23e92cdd00b41e030311027c10af2 to your computer and use it in GitHub Desktop.
Save iamnimnul/1ae23e92cdd00b41e030311027c10af2 to your computer and use it in GitHub Desktop.
JIRA Rapid Board - table header with sum of points in the column (bookmarklet)
javascript:(function () {
jQuery('.ghx-column-headers li').each(function (index) {
var pointsSum = 0;
jQuery('.ghx-columns li').eq(index).find(".aui-badge[title='Story Points']").each(function (index) {
pointsSum += parseInt(jQuery(this).text());
});
var span = jQuery('<span>(' + pointsSum + ')</span>');
span.css({'display': 'inline-block', 'right': 0, 'position': 'absolute'});
jQuery(this).append(span);
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment