Bugzilla Tips

March 29, 2010

Alternative Data Formats

Filed under: Uncategorized — gervmarkham @ 1:43 pm

If you want data out of Bugzilla in some format other than an HTML web page, Bugzilla can support that. The “ctype” parameter takes a short name for a content type. Valid ctypes include:

  • Bugs: xml (using a custom Bugzilla schema)
  • Bug lists: js, ics, atom, rdf (which is XML), csv
  • Reports: csv

So you can subscribe to a buglist using Atom, or import it into a spreadsheet using CSV. For security reasons, the JS template is limited to public bugs only.

You can also get all this data and more as XML or JSON from the built-in RPC API, and as JSON or unstable XML from the RESTful BzAPI.For these two formats, these APIs are the recommended way to get data.

New formats can be created simply by dropping a template into the relevant directory on a Bugzilla installation. So if there are formats you’d like, say so :-)

March 23, 2010

Neat BzAPI Tools

Filed under: Uncategorized — gervmarkham @ 3:34 pm

Atul Varma has built some very cool tools using the Bugzilla REST API:

  • User Dashboard – shows things you need to review, bugs assigned to you, ones you reported recently and other useful lists.
  • User Finder – put your Bugzilla username and password in the first two fields, and the person you are searching for in the third one. Handy for knowing what someone’s email address is to CC them. You can also use this to make your own Dashboard by searching for yourself then hitting the button.
  • Bug Filer – automatically finds products and components matching a string, and takes you to an Enter Bug page for that component. This one is a bit slow, but we checked in two fixes this week to Bugzilla core to speed up config.cgi which (indirectly) supplies the data, so hopefully they’ll make it to b.m.o. before too long.
  • For Hg users, he’s also working on a qexportbz command to match qimportbz, but it’s not quite ready yet.

You can hear and see him demoing them in the (open) video of the WeeklyUpdate meeting from yesterday, which is embedded at the top of the meeting’s wiki page. Starts 2 minutes in.

He said: “To alleviate some of my major pain points, I decided to look into Gerv’s RESTful API for Bugzilla. So I used that to make some tools”. That’s exactly what the BzAPI was created for. Go Atul! And everyone else, please do the same!

March 16, 2010

bugzilla.mozilla.org URL shorteners and shortcuts

Filed under: Uncategorized — gervmarkham @ 11:08 am

Fed up of typing https://bugzilla.mozilla.org/show_bug.cgi?id=549867 ?

Firstly, it’s a great idea to set up a “bug” keyword in Firefox. So you can type (or, often more usefully, paste from an email) “bug 123456” into your URL bar and have the Right Thing happen. The URL you need is:


Right-click, select “Bookmark This Link” and type “bug” into the “keyword” box.

Secondly, the handily-named bugzil.la URL shortener permits e.g.:


http://bugzil.la/<some quicksearch string>

(Thanks to Reed for making that happen.) This is good if you are attempting to squeeze an important message into, say, 140 characters. In case anyone was wondering, “.la” is Laos.

March 8, 2010

Email Replies to Bugzilla Comments

Filed under: Uncategorized — gervmarkham @ 5:42 pm

sdwilsh has written a Thunderbird addon called Bugzilla Helper (not to be confused with the Bugzilla Helper which guides you through bug submission). It allows you to press Reply when viewing a bugmail, and instead of popping up an email addressed to a non-working address (not helpful), will instead give you a window to type your comment in, helpfully quoting the previous comment. When you hit Submit, it will add your comment via the BzAPI.

So you can now reply to bugmail :-)

March 3, 2010

Linkify Like A Bugzilla Comment

Filed under: Uncategorized — gervmarkham @ 1:55 pm

Have you ever had a chunk of text and wished you could apply the Bugzilla comment autolinkifier to it?

  • Autolinkified URLs, bug numbers and attachment numbers (with “details” link)
  • Bug numbers have the bug title as the tooltip
  • Strikeout style for closed bugs

Wish no longer.

This could be handy for e.g. some wiki text involving a load of bug numbers.

Create a free website or blog at WordPress.com.