Project

General

Profile

HowTo Mylyn » History » Version 2

Jean-Philippe Lang, 2008-05-03 19:53

1 1 Jean-Philippe Lang
h1. HowTo connect a Mylyn repository to Redmine
2
3
"Mylyn":http://www.eclipse.org/mylyn is an Eclipse plugin for task management.
4
This HowTo explains how to connect to Redmine using the generic web repository connector.
5
6
Note that the generic web repository connector is not part of the default Mylyn install.
7
So, you have to install it first from the _extras_ update site (see http://www.eclipse.org/mylyn/downloads).
8
9
h2. Create a Task Repository
10
11
# Right-click on the task repositories list and click *Add task repository*
12
# Choose _Generic web based access (Advanced)_ and click *Next*
13
# Configure the repository:
14
15 2 Jean-Philippe Lang
<pre>
16
Server:                 http://www.redmine.org -- Replace it with the URL with the URL of your Redmine instance
17
Task URL:               ${serverUrl}/issues/show/
18
New task URL:           ${serverUrl}/projects/foo/issues/new -- Replace foo with the identifier of the project used for new tasks
19
Query request URL:      ${serverUrl}/issues
20
Query pattern:          <td class="subject">.*?<a href="/issues/show/(\d+)">(.+?)</a></td>
21
Login request URL:      ${serverUrl}/login?username=${userId}&password=${password}
22
</pre>
23 1 Jean-Philippe Lang
24 2 Jean-Philippe Lang
Example:
25 1 Jean-Philippe Lang
26 2 Jean-Philippe Lang
p=. !mylyn-repository-properties.png!
27
28
You can replace the _Query request URL_ parameter with the following if you want to get only the issues that are assigned to you:
29
30
  ${serverUrl}/issues?set_filter=1&assigned_to_id=me
31
32 1 Jean-Philippe Lang
h2. Create a Query
33
34
* On the task list, right-click and choose *New* -> *Query...*
35
* And select your newly created repository
36
37 2 Jean-Philippe Lang
p=. !mylyn-task-list.png!