Viewing all used Tags - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com 2012-02-09T13:36:28Z http://fogbugz.stackexchange.com/feeds/question/1590 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://fogbugz.stackexchange.com/questions/1590/viewing-all-used-tags Viewing all used Tags Matt Lacey 2010-01-25T12:09:39Z 2010-04-01T13:34:59Z <p>Is there an easy way to see all tags used in the system?</p> <p>We use tags to classify support cases and are after an easy way to see how many cases with each tag have been received/entered in the system.</p> <p>At the moment finding this out involves listing all tickets grouped/ordered by tag and then going through and counting each one.</p> http://fogbugz.stackexchange.com/questions/1590/viewing-all-used-tags/1592#1592 Answer by James McLeod for Viewing all used Tags James McLeod 2010-01-25T13:09:42Z 2010-01-25T13:09:42Z <p>It would be nice if the XML API had a listTags command for this, but I can't see one.</p> <p>If you have access to the database, you can use the following SQL:</p> <p>SELECT sTag, count(ixBug) FROM tag t JOIN tagassociation a ON t.ixTag = a.ixTag GROUP BY a.ixBug;</p> <p>To get the names of the cases for each tag:</p> <p>SELECT sTag, b.ixBug, sTitle FROM tag t JOIN tagassociation a ON t.ixTag = a.ixTag JOIN bug b ON b.ixBug = a.ixBug;</p> <p>And to just get the list of tags:</p> <p>SELECT sTag FROM tag t;</p> http://fogbugz.stackexchange.com/questions/1590/viewing-all-used-tags/1829#1829 Answer by Marc Moroz for Viewing all used Tags Marc Moroz 2010-02-08T04:40:03Z 2010-02-08T04:40:03Z <p>Click on "Reports". At the bottom of the list you'll find "Tags."</p> <p>There, you'll find all of the tags in the system with an intelligent searching field and other cool features.</p>