Skip to content

Instantly share code, notes, and snippets.

@dougn
Last active December 18, 2015 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougn/5746656 to your computer and use it in GitHub Desktop.
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
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