Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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