Project

General

Profile

HowTo Mylyn » History » Version 8

Etienne Massip, 2009-08-26 12:04
${serverUrl}/issues/show produces 404 error (since RESTful changes ?)

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 6 Mischa The Evil
So, you have to install it first from the _incubator_ update site (see http://download.eclipse.org/tools/mylyn/update/incubator).
8 1 Jean-Philippe Lang
9
h2. Create a Task Repository
10
11
# Right-click on the task repositories list and click *Add task repository*
12 5 Jeffrey Price
# Choose _Web Template (Advanced)_ and click *Next*
13 1 Jean-Philippe Lang
# Configure the repository:
14
15 2 Jean-Philippe Lang
<pre>
16 4 Jean-Philippe Lang
Server:                 http://www.redmine.org -- Replace it with the URL of your Redmine instance
17 8 Etienne Massip
Task URL:               ${serverUrl}/issues/
18 2 Jean-Philippe Lang
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 3 Jean-Philippe Lang
Login request URL:      ${serverUrl}/login?username=${userId}&password=${password} [POST]
22 2 Jean-Philippe Lang
</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!
38 7 steeven lee
39
40
41
"Redmine-Mylyn Connector":http://redmin-mylyncon.wiki.sourceforge.net/Installation is another solution providing better integration with Mylyn