Archive for the ‘ruby’ Category

Lighthouse API: Moving open tickets to the next milestone

Monday, December 29th, 2008

At Handi we use Lighthouse for issue tracking with weekly milestones. At the end of the week we take all the open issues and bump them to next week so we can pick up where we left off. Currently there is no way to bulk edit tickets in Lighthouse and if there are more than a couple of issues left to move it gets annoying.

Lighthouse provides a Ruby API - apted named lighthouse-api for updating tickets. If your Rails is rusty like mine you’ll need to update a bunch of gems and finally grab the API off github:

The script itself is simple - iterate through the milestones in the project to find the current and next milestone. Then find open tickets in the current milestone and update them to be in the next milestone. activeresource makes this all snap as you can interact with the Lighthouse objects just like any other activerecord objects:

Don’t forget to update the script with your Lighthouse account, token and project id.

Happy hacking!