HowTo Mylyn » History » Version 27

Version 26 (Felix Schäfer, 2010-06-03 11:46) → Version 27/58 (Felix Schäfer, 2010-06-10 14:50)

(I got tired of scrubbing spam from this page, please "contact me":/users/3866 with the needed modifications if you spot errors. I don't use Eclipse or Mylyn myself, so all credit goes to the original authors and those that have sent modifications to me.) errors)

h1. HowTo connect a Mylyn repository to Redmine


These instructions should work with redmine 0.9 stable and up.

h2. Using the generic web repository connector

"Mylyn": is an Eclipse plugin for task management.
This HowTo explains how to connect to Redmine using the generic web repository connector.

Note that the generic web repository connector is not part of the default Mylyn install.
So, you have to install it first from the _incubator_ update site (see

h3. Create a Task Repository

# Right-click on the task repositories list and click *Add task repository*
# Choose _Web Template (Advanced)_ and click *Next*
# Configure the repository:

Server: -- Replace it with the URL of your Redmine instance
Task URL: ${serverUrl}/issues/ ${serverUrl}/issues/show/
New task URL: ${serverUrl}/projects/foo/issues/new -- Replace foo with the identifier of the project used for new tasks
Query request URL: ${serverUrl}/issues
Query pattern: <td class="subject">.*?<a href="/issues/(\d+)">(.+?)</a></td> href=&quot;/issues/show/(\d+)&quot;&gt;(.+?)&lt;/a&gt;&lt;/td&gt;
Login request URL: ${serverUrl}/login?username=${userId}&password=${password}&authenticity_token=${loginToken} ${serverUrl}/login?username=${userId}&amp;password=${password} [POST]
Login Form URL: ${serverUrl}/login
Login Token Pattern: <input name="authenticity_token" type="hidden" value="(.+?)" />

Example (this screenshot is somewhat outdated, you can "send me":/users/3866 a newer one if you use Mylyn, thanks): Example:

p=. !mylyn-repository-properties.png!

You can replace the _Query request URL_ parameter with the following if you want to get only the issues that are assigned to you:


The following Query pattern value reads Status, Owner and Tracker fields too (Mylyn 3.2.1) :
<td class="tracker">({Type}.+?)</td><td class="status">({Status}.+?)</td>.+?<td class="subject"><a href=".*?/issues/({Id}\d+)">({Description}.+?)</a></td><td href=&quot;.*?/issues/show/({Id}\d+)&quot;&gt;({Description}.+?)&lt;/a&gt;&lt;/td&gt;&lt;td class="assigned_to"><a href.+?>({Owner}.+?)</a></td>

Status is read as "uncomplete" or "complete" in Eclipse.

h3. Create a Query

* On the task list, right-click and choose *New* -> *Query...*
* And select your newly created repository

p=. !mylyn-task-list.png!

h2. Using specialized Redmine-Mylyn connector

"Redmine-Mylyn Connector": is another solution providing better integration with Mylyn.