
We use fogbugz at work and so far, gotta say I’m pretty impressed. It’s easy to get stuff into it, it’s easy to find things, and most importantly, it has a pretty slick API that you can hop around in pretty quickly. This can be good and bad because it usually has me answering things like “Arg, fogbugz doesn’t do x when I y!” with a hearty “Ah, but with the API, almost anything is possible!” Yay I’m a superhero!
Having said all of that I have learned that just because a company advertises having api doesn’t mean that it’s any good OR that it even does what they say it will. Now, whenever I encounter a blob of software advertising an API one of the first things I do is bang out a little AIR app to test it. Why AIR? Well, I’m most proficient in actionscript but more importantly I can crank out a little app that is easy to share in our Windows and MAC environment. Plus, whenever the question comes up on whether an API can accomplish this or that I can actually test it and kinda stage what all would go into completing the task.
So, while this isn’t the most exciting AIR app out there, I’m throwing it out to anybody else is in need of testing the fogbugz API while not wanting to spend the hour to get something like this running.
Download here – source code is included, cool kiwi icon is not
Instructions: You’ll want to peruse the api page but it’s pretty straight forward, log in with your fogbugz url, username (email address), and password. After that, to access the API you’ll need to fill out an action (again, specified on the api page) and a set of variables.
To start out easy – just type “listProjects” (without the quotes) in the action field and hit go – viola! From there you can feel around the api page and really get a feel for all of the stuff you can do.
What you get back is some xml (you can view it in a pretty tree or as an unsightly raw mess of xml) – what you do with it from there is up to you. I encourage you to do good but to each his own. If you have any problems just leave a comment and I can help you out.
Remember, you do need the latest version of Adobe AIR – you can grab it here.
UPDATE:
4/10/09: Well, a buddy of mine was the first user and right away found my first error – I wasn’t throwing an error is the email or password was wrong. Fixed, uploaded new version!
6/19/09: I made it so that it will remember your fogbugz url and username and I added a link to the bottom right corner to shamelessly promote myself.





6 comments
[...] I might want to make a page where I could put updates and stuff so you can now find it located here. I’m not officially supporting it but I could be persuaded to add some improvements if [...]
by paulmignard » Blog Archive » A couple of code related updates… on June 20, 2009 at 1:33 pm. #
[...] some feature doesn’t work the way you want it to is a very comforting feeling. And having worked with it a little in the past I know it’s a very capable api that’ll allow you to code up quite [...]
by paulmignard » Blog Archive » Adding more fruity treats to FogBugz on January 19, 2010 at 10:11 pm. #
Thanks for posting this – I found it to be a great help when I need to sanity test some hairbrained scheme I concocted for the API. It is a nifty little tool.
Has saved me a lot of work that would have yielded nothing…
by WBC on April 5, 2011 at 12:44 pm. #
Sweet – glad it saved you some time!
by paul on April 5, 2011 at 12:45 pm. #
Excellent tool, thanks for posting. Makes testing the API hooks and process that much easier.
It also marks my first look at an AIR app source-code … surprising how close the AIR and wpf/XAML syntax are.
by kanuck on July 25, 2011 at 10:29 am. #
Awesome, glad it was some help for you.
Oh how I miss C# and all the LINQ goodness – certainly one thing missing from actionscript and mxml.
by paul on July 25, 2011 at 6:08 pm. #