Project

General

Profile

HowTo Mylyn » History » Version 14

elaine gregg, 2010-01-12 04:09

1 1 Jean-Philippe Lang
h1. HowTo connect a Mylyn repository to Redmine
2
3 13 Mischa The Evil
{{>TOC}}
4
5
h2. Using the generic web repository connector
6
7 1 Jean-Philippe Lang
"Mylyn":http://www.eclipse.org/mylyn is an Eclipse plugin for task management.
8
This HowTo explains how to connect to Redmine using the generic web repository connector.
9
10 6 Mischa The Evil
Note that the generic web repository connector is not part of the default Mylyn install.
11 1 Jean-Philippe Lang
So, you have to install it first from the _incubator_ update site (see http://download.eclipse.org/tools/mylyn/update/incubator).
12
13 13 Mischa The Evil
h3. Create a Task Repository
14 1 Jean-Philippe Lang
15
# Right-click on the task repositories list and click *Add task repository*
16 5 Jeffrey Price
# Choose _Web Template (Advanced)_ and click *Next*
17 1 Jean-Philippe Lang
# Configure the repository:
18
19 2 Jean-Philippe Lang
<pre>
20 4 Jean-Philippe Lang
Server:                 http://www.redmine.org -- Replace it with the URL of your Redmine instance
21 9 Etienne Massip
Task URL:               ${serverUrl}/issues/show/
22 2 Jean-Philippe Lang
New task URL:           ${serverUrl}/projects/foo/issues/new -- Replace foo with the identifier of the project used for new tasks
23
Query request URL:      ${serverUrl}/issues
24
Query pattern:          <td class="subject">.*?<a href="/issues/show/(\d+)">(.+?)</a></td>
25 3 Jean-Philippe Lang
Login request URL:      ${serverUrl}/login?username=${userId}&password=${password} [POST]
26 2 Jean-Philippe Lang
</pre>
27 1 Jean-Philippe Lang
28 2 Jean-Philippe Lang
Example:
29 1 Jean-Philippe Lang
30 2 Jean-Philippe Lang
p=. !mylyn-repository-properties.png!
31
32 14 elaine gregg
You can replace the _Query request URL_ parameter with the following if you want to get only the "custom essay":http://www.bestessays.ca/ and "term paper":http://www.bestessays.ca/prices.php issues that are assigned to you:
33 2 Jean-Philippe Lang
34
  ${serverUrl}/issues?set_filter=1&assigned_to_id=me
35
36 10 Etienne Massip
The following Query pattern value reads Status and Tracker fields too (Mylyn 3.2.1) :
37
<pre>
38
<td class="tracker">({Type}.+?)</td><td class="status">({Status}.+?)</td>.+?<td class="subject"><a href="/issues/({Id}\d+)">({Description}.+?)</a></td>
39
</pre>
40
41 1 Jean-Philippe Lang
Status is read as "uncomplete" or "complete" in Eclipse.
42 10 Etienne Massip
43 13 Mischa The Evil
h3. Create a Query
44 1 Jean-Philippe Lang
45
* On the task list, right-click and choose *New* -> *Query...*
46 2 Jean-Philippe Lang
* And select your newly created repository
47 7 steeven lee
48 1 Jean-Philippe Lang
p=. !mylyn-task-list.png!
49 7 steeven lee
50 13 Mischa The Evil
h2. Using specialized Redmine-Mylyn connector
51 7 steeven lee
52 13 Mischa The Evil
"Redmine-Mylyn Connector":http://redmin-mylyncon.wiki.sourceforge.net/Installation is another solution providing better integration with Mylyn.