Last active
December 18, 2015 07:29
-
-
Save dougn/5746656 to your computer and use it in GitHub Desktop.
FogBugz Customization to create a case summary text to be cut&pasted into checkin comments
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
name: Case Title Summary | |
description: Add a cut&pasteable form of the case in the form of 'Category:1234 ("title here")' to cases. | |
author: Napoleone, Doug | |
version: 1.0.0.0 | |
js: | |
// TODO: Fill this in | |
if (!window.goBug || !$("#bugviewContainer").length || $("#miniBugList").length) | |
return; // Don't do anything unless we're looking at a single bug :-( | |
var cat = $('.catIcon').attr('title'); | |
var num = $($($('.ixBug')[0]).children()[0]).text(); | |
var title = $($('div.content.title')[0]).text(); | |
var string = '<div id="customTitleSummary">' + cat + ':' + num + ' ("' + title + '")</div>'; | |
$($('.ixBug')[0]).append(string); | |
css: | |
/* body { background-color: red !important; } */ | |
#customTitleSummary { | |
word-wrap: break-word; | |
padding-right: 5px; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment