Last active
April 3, 2018 13:45
-
-
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)
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
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