HowTo Mylyn » History » Version 2

Version 1 (Jean-Philippe Lang, 2008-05-03 19:37) → Version 2/58 (Jean-Philippe Lang, 2008-05-03 19:53)

h1. HowTo connect a Mylyn repository to Redmine

"Mylyn":http://www.eclipse.org/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 _extras_ update site (see http://www.eclipse.org/mylyn/downloads).

h2. Create a Task Repository

# Right-click on the task repositories list and click *Add task repository*
# Choose _Generic web based access (Advanced)_ and click *Next*
# Configure the repository:

<pre> !mylyn-repository-properties.png!

Notes:

* Server: http://www.redmine.org -- Replace it with replace the URL with the URL of your Redmine instance
Task URL: ${serverUrl}/issues/show/
* New task URL: ${serverUrl}/projects/foo/issues/new -- Replace foo 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/show/(\d+)">(.+?)</a></td>
Login request URL: ${serverUrl}/login?username=${userId}&password=${password}
</pre>


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:

${serverUrl}/issues?set_filter=1&assigned_to_id=me

h2. Create a Query

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

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