Feature Request: Custom Categories / Statuses Per Project - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com 2013-06-19T09:04:21Z http://fogbugz.stackexchange.com/feeds/question/7569 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://fogbugz.stackexchange.com/questions/7569/feature-request-custom-categories-statuses-per-project Feature Request: Custom Categories / Statuses Per Project Kyle 2011-03-23T12:46:28Z 2012-10-08T14:07:22Z <p>Is there any chance that in future we can look at gaining the option to customize what statuses and categories a project can have without affecting other projects?</p> <p>This feature would be great - adding more power to per project customization.</p> <blockquote> <p><img src="http://www.gravatar.com/avatar/baf927dcc0b0c5d0f41dece1e575aa0f?s=32&amp;d=identicon&amp;r=PG" alt="Fog Creek"> <a href="http://meta.stackexchange.com/questions/3337/whats-that-kiwi-logo-and-case-number-at-the-bottom-of-my-feature-request-bug-r" rel="nofollow">Case FC2035557</a></p> </blockquote> http://fogbugz.stackexchange.com/questions/7569/feature-request-custom-categories-statuses-per-project/7576#7576 Answer by db for Feature Request: Custom Categories / Statuses Per Project db 2011-03-23T18:41:27Z 2012-08-29T13:12:09Z <p>This isn't something that's currently possible with FogBugz out-of-the-box.</p> <p><strong>Please vote up this question to show your support for this feature request!</strong></p> <p>As a workaround, you could try the following:</p> <ol> <li>Using the <a href="http://www.fogcreek.com/fogbugz/plugins/plugin.aspx?ixPlugin=9" rel="nofollow">Workflow plugin</a>, create all the categories you need for all of your different projects, prefixing those that are project-specific with its corresponding project's name:</li> </ol> <p>E.g.</p> <ul> <li>Catastrophe (this one will be a "global" category)</li> <li>Sales - Cold Lead</li> <li>Sales - Hot Lead</li> <li>Sales - Existing</li> <li>Tech - Bug</li> <li>Tech - Feature</li> <li>Tech - Inquiry</li> </ul> <p>Now, if you left things like this, it would obviously be a little cumbersome since every project would display <em>all</em> of these categories, even though only some of them are meant to apply for any given project.</p> <p>To work around this, you can add the following <a href="http://www.fogcreek.com/fogbugz/plugins/plugin.aspx?ixPlugin=16" rel="nofollow">Bug Monkey</a> customization (and mark it as a required customization for everyone--both normal users and administrators) that will hide those categories that don't apply to the currently selected project, but leave the global categories in place:</p> <pre><code>name: Filter categories by their project prefix description: Allows you to create per-project categories by prefixing the category name with the project. Eg. "Sales - Hot Lead" will only apply to the "Sales" project. Categories without a project prefix (basically, those that don't contain " - " will be displayed for all projects. author: Dane Bertram &amp; Daniel LeCheminant version: 1.0.0.0 js: var toggleProjectCategories = function(sProject){ if(!$('#ixCategory').length) return; var existingIxCat = parseInt($('#ixCategory :selected').val()); var cats = $('#ixCategory').empty(); $(DB.Category).each(function(ix, cat){ if(cat.fDeleted) return; // skip deleted categories var sCategoryPrefix = /^(.+) - (.+)/.exec(cat.sCategory); // capture the project prefix and non-prefixed category name if(!sCategoryPrefix || sCategoryPrefix[1] === sProject){ // either a global category (no project prefix), or a per-project // category that matches the currently selected project var newOpt = $('&lt;option&gt;') .val(cat.ixCategory) .text(sCategoryPrefix ? sCategoryPrefix[2] : cat.sCategory) .appendTo(cats); // if we're transitioning into edit mode, keep the previously-selected category selected if(cat.ixCategory === existingIxCat) newOpt.attr('selected', 'selected'); } }); // this makes sure that the status drop-down is correct $('#ixCategory').change(); DropListControl.refresh(cats[0]); } var init = function(){ $('#ixProject').change(function() { toggleProjectCategories($(this).find(":selected").text()); }); toggleProjectCategories($('#ixProject :selected').text()); } $(window).bind("BugViewChange", init); init(); </code></pre> <p>I think that will get you what you're looking for, or at least most of the way there.</p> http://fogbugz.stackexchange.com/questions/7569/feature-request-custom-categories-statuses-per-project/10851#10851 Answer by Arobotbrain for Feature Request: Custom Categories / Statuses Per Project Arobotbrain 2012-10-08T14:07:22Z 2012-10-08T14:07:22Z <p>Interesting. Would it be possible to modify the code to make the categories workflow specific, and not project specific?</p>