Home > General, Languages, php > Mantis in Eclipse with Mylyn

Mantis in Eclipse with Mylyn

This is a post especially for those who use Mantis as a bug tracker software and Eclipse as development software. For our PHP and JAVA development we do all the programming in Eclipse and wouldn’t it be easy if Eclipse recognized the bugs we are working? Wouldn’t it be easy if we could just get an automatic link between mantis and the commits we do in subversion (svn).

Well, praise the lord, ’cause there is an open source project out there that does all these things called Mylyn.

Mylyn is a task-focused interface for Eclipse that reduces information overload and makes multi-tasking easy. It does this by making tasks a first class part of Eclipse, and integrating rich and offline editing for repositories such as Bugzilla, Trac, and JIRA. Once your tasks are integrated, Mylyn monitors your work activity to identify relevant information, and uses this task context to focus the user interface on the task-at-hand. This puts the information you need at your fingertips and improves productivity by reducing searching, scrolling, and navigation. By making task context explicit Mylyn also facilitates multitasking, planning, reusing past efforts, and sharing expertise.

tasklist-splash-31
After a quick install and doing the configuration in Eclipse the interface is installed in Eclipse and ready to work with. And it is great! Easy overviews of all the bugs sorted by filter as you personally prefer, great layout to create and manage the bugs, etc.

It communicates quite nice with mantis, it could be a bit faster but let’s not fall over that tiny thing. The cool thing though is when working for a specific bug, all changes will be committed on those files with a reference to that specific bug. This makes it very easy to get see what files where changed for a specific bug.

For example when you commit changed files you will be asked to comment your committed files. Mylyn links your files directly to the current bug you are working on and puts this in the comment area: “fixed issue #178: Change user name to full name” . The number of the issue and the state are first mentioned and the title completes your comment.

In the screenshot you can see how a bug can be inserted or edited in a easy layout and inside the eclipse environment. Click on the image or here to see a larger image
mylyn-31-screenshot

My colleague Toni also installed WebSVN that gives us a super overview on all those changes and files committed in subversion.

If you use Mantis and Eclipse and SVN I highly recommend that you use these two utilities.

Bookmark and Share
Categories: General, Languages, php Tags: , , , ,
  1. May 21st, 2009 at 19:20 | #1

    Mylyn does not support Mantis be default, so even if you install the mylyn module in eclipse you won’t be able to connect to mantis.

    And you also need to install a “SOAP” interface (mantisconnect) in mantis to be able to connect from the outside.

    You’ll find all the information needed on this page: http://mylyn-mantis.wiki.sourceforge.net/

    And the default messages in the commit box of your version control can be changed in the Preferences >> Tasks >> Team :
    “fixed issue #178: Change user name to full name”
    would be
    “${task.resolution} issue ${connector.task.prefix}${task.key}: ${task.description}”.

  2. newton
    July 28th, 2010 at 22:27 | #2

    how do you integrate this svn commit funcionality in mylyn? I couldn’t do it. thanks!

  3. July 29th, 2010 at 18:00 | #3

    Hello newton,

    Do this you need to go in preferences of eclipse (Window > Prefrences).

    In the menu “Task” > “Team” you can configure the commit template. Check also “Automatically create and manage with task context”.

    Make sure that before you commit the task is activated in mylyn.

    Keep me in touch if it doesn’t work.

    grtz

  1. July 3rd, 2009 at 03:21 | #1