Skip to content

Instantly share code, notes, and snippets.

@aricih
Last active August 1, 2018 10:30
Show Gist options
  • Save aricih/43038eb755005a869b905c32a97f2d23 to your computer and use it in GitHub Desktop.
Save aricih/43038eb755005a869b905c32a97f2d23 to your computer and use it in GitHub Desktop.
$(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