Monday, July 28, 2008

Rally - Greasemonkey script to restore the "Green Boxes" on iteration printout

Coincidentally, after a co-worker of mine asked Rally about how to print the green boxes when generating an iteration report, Rally changed the way status is rendered on their HTML report. It will no-longer show green boxes and instead increase the border size of the boxes.   This bothered me a little as the green boxes (shading) shows up better on the printer that I use than trying to decipher the status from an increase of 1 pixel border on some boxes.

I created this Greasemonkey script for firefox to restore this previous functionality to Rally's printouts.
// ==UserScript==
// @name           Color Boxes
// @namespace      jason-rally-color-status
// @include        https://rally1.rallydev.com/slm/sc/print/processReportDialog.sp
// ==/UserScript==

var allDivs, thisDiv;
allDivs = document.evaluate(
    "//td[@class='selected']/div",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);
for (var i = 0; i < allDivs.snapshotLength; i++) {
    thisDiv = allDivs.snapshotItem(i);
    thisDiv.setAttribute('style', 'color: white; background-color: green;');
}

1 comment:

  1. Thanks a lot for sharing this with all folks you really recognise what you are talking about! In this complex environment business need to present there company data in meaningful way.Sqiar (http://www.sqiar.com/solutions/technology/tableau/) which is in UK,provide services like Tableau and Data Warehousing etc .In these services sqiar experts convert company data into meaningful way.

    ReplyDelete