您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Sums up all the story points on the "planning" view of a Jira project's RapidBoard (i.e. Backlog) .
当前为
// ==UserScript== // @name Atlassian Jira RapidBoard Planning Story Points Total // @namespace KoryPaulsen // @version 0.0.1 // @description Sums up all the story points on the "planning" view of a Jira project's RapidBoard (i.e. Backlog) . // @author Kory Paulsen // @match https://*.atlassian.net/secure/RapidBoard.jspa?rapidView=*&view=planning* // @grant none // ==/UserScript== console.log("UserScript - Atlassian Jira RapidBoard Planning Story Points Total"); document.addEventListener('DOMContentLoaded', function() { (function($) { // Add up all the story points on a RapidBoard Planning view page let storyPtsCount = function() { let storyHeader = $('#ghx-content-group .header-left'); if (storyHeader.length === 0) { setTimeout(storyPtsCount, 500); } else { let storyPts = 0; $('[title="Story Points"]').each(function() { storyPts += parseInt($(this).html()); }); console.log("UserScript - Atlassian Jira RapidBoard Planning Story Points Total - Total story points", storyPts); $('.ghx-issue-count', storyHeader).append('<span class="Resource-Override story-points"> - Points: ' + storyPts + '</span>'); } } storyPtsCount(); })(jQuery); });