Last active
August 1, 2018 10:30
-
-
Save aricih/43038eb755005a869b905c32a97f2d23 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$(function() { | |
var caseSet = []; | |
$(".vb,.uvb").each(function(i, o) { | |
var content = $(o).html(); | |
var splitIndex = content.indexOf("-"); | |
var caseNumber = content.substr(0, splitIndex).trim(); | |
if(caseSet.indexOf(caseNumber) >= 0) { | |
return; | |
} | |
caseSet.push(caseNumber); | |
var caseDetails = content.substr(splitIndex+1, content.len) | |
.replace("(Active)","") | |
.replace("(Resolved (Implemented))","") | |
.replace("(Closed)","") | |
.trim(); | |
document.write("<a href='https://msltd.fogbugz.com/f/cases/" + caseNumber + "'>#" + caseNumber + "</a> - " + caseDetails + "<br />"); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment