I’ve been using Lighthouse for tracking tasks and issues in my iOS development. I like it because it’s cloud-based and fairly elastic; right now as I write I’m the only developer but I hope to expand in the future. I have no interest in administering an issue tracking system (I’ve done so with Bugzilla and Scarab in the past) because I want to focus my available side-job time on development as much as possible.
I decided to give integrated task management a whirl using eclipse as both my mac subversion client and Java IDE. If you’re wondering how this ties into my iOS development – I have some supporting server-side Java apps and I’ve been less than impressed with Xcode’s built-in SVN tooling.
A while back I saw some early interest in integrating Mylyn and Lighthouse, and decided to see where it went. Below are the steps I took to integrate to the point where I can:
- flag what issue I’m working on in eclipse, and then have eclipse automatically add task info into my source control commit comments
- Quickly create tasks from within the IDE when I discover TODOs, without having to flip back and forth to retain context. Note: right now this is limited to doing so with the embedded browser; I’ll update this post if I find out how to create from eclipse itself.
- Code in Xcode and Eclipse and commit from Eclipse, performing one commit for changes in multiple projects for a single fix or enhancement
First of all, let me say I didn’t do 90% of the legwork here. I followed the steps in forum posts on Lighthouse support and a blog entry I found. I tweaked a bit after that.
Step one: Install Mylyn Web Templates support
As of this writing, the Mylyn connector needed for Lighthouse integration didn’t come with Eclipse 3.6 (Helios) SR2 and was marked as an “incubation” component.
You may (probably?) need to add the Mylyn incubation update site to your software repositories:

Next, install the connector:

From the Help menu, Install New Software

The Mylyn Incubator Components install dialog
Choose “Mylyn Connector: Web Templates”. This component will be configured after we install it to connect to Lighthouseapp’s XML feed of your tickets.
Restart eclipse when prompted.
Step Two: Configure the Connector
You’ll want to gather your lighthouse project URL before configuring a new Mylyn repository in your eclipse Task Repositories view. You can find the URL for your project(s) on the right side of Lighthouse after logging in:

Usually the URL is in this form:
http://[your-lighthouse-account].lighthouse.com/projects/[your-project]
You’ll then want to configure a new task repository in Mylyn using the web connector. Open the Tasks view (Window -> Show View ->Task Repositories) and click the “Add Task Repository…” icon.

New Mylyn Task Repository Dialog
Enter your Lighthouse project URL as the “Server” URL. Give this project a meaningful label in the dialog (this string will display in Eclipse any time you interact with this repository) and leave the “anonymous” checkbox selected. We’ll get to authentication in a minute.
Add a parameter named “query” and a value of “all” in the “Additional Settings” section. This tells the Lighthouse XML query API to search all tickets, both open and resolved.
Under “Http Authentication” be sure to check the box and enter your Lighthouse user ID and password. I chose to have eclipse remember this password.
In the “Advanced Settings” section you can enter the following:
- Task URL: ${serverUrl}/tickets/
- New Task URL: ${serverUrl}/tickets/new
- Query Pattern:
.*?({Id}.+?).*?({Status}.+?).*?({Description}.+?).*?({Owner}.+?)
If this works, you should be able to view Lighthouse issues in the embedded browser like this:

Light house Tickets view in Eclipse Mylyn
You should now be able to open the Task List view and see a list of Lighthouse issues.
Step Three: Configuring SCM Commits
I wanted to be able to auto-tag my version control with mention of the or issue I was addressing. With mylyn, you basically “activate” a given task / defect, perform coding, and eclipse then knows what task with which to tag your SCM commit. To modify this from default, choose Window -> Preferences on a PC or Eclipse -> Preferences on a Mac, choose “Tasks” and enter this for the commit comment:
${task.status} – ${connector.task.prefix} ${task.key}: ${task.description}
${task.url} [#${task.key}]

Once this is set up, your check-ins should looks something along these lines:

Mylyn svn commit dialog
Conclusion
In this tutorial we installed the mylyn tooling and the incubation Mylyn Web Templates plugin. We then configured it with our Lighthouse project URL and a regular expression that allows eclipse to pluck data elements from each ticket to render in its gui (particularly when you are inspecting a single web value. We updated the commit template preference so our check-ins can reflect the task we were working.
Hope this helps,
-Scott