Суббота, 20.04.2024, 13:57
Приветствую Вас Гость | RSS
Мой сайт
Главная
Регистрация
Вход
Форма входа

Меню сайта

Категории раздела
Об ОС Windows [137]
В категории размещаются статьи, касающщиеся операционных систем от Microsoft.
Об ОС *Nix [198]
В данной категории собраны статьи об ОС семейства Unix/Linux/FreeBSD/...
Справочные материалы [351]
Справка по всему разделу.
Виртуализация и Облака [46]
Networks & Routing [86]
DataBases [22]

Наш опрос
Оцените мой сайт
Всего ответов: 209

Статистика

Онлайн всего: 1
Гостей: 1
Пользователей: 0

Главная » Статьи » Системное администрирование » Справочные материалы

Mylyn connector to Redmine

Configuring Mylin with Redmine

Posted on November 30th, 2010 by George Suaridze

We will do integration using the generic web repository connector.

First of all you need to install generic web repository connector from the incubator update site (see http://download.eclipse.org/tools/mylyn/update/incubator). 
Create a Task Repository

  1. Right-click on the task repositories view and click Add task repository
  2. Choose Web Template (Advanced) and click Next
  3. Configure the repository:
Server:http://redmine.company.com — Replace it with the URL of your Redmine instance
Task URL:${serverUrl}/projects/foo/issues/
New task URL:${serverUrl}/projects/foo/issues/new — Replace foo with the identifier of the project used for new tasks
Query request URL:${serverUrl}/projects/foo/issues?set_filter=1&assigned_to_id=me [GET]
Query pattern:<td>({Type}.+?)</td><td >({Status}.+?)</td>.+?<td >.*?<a href=”.*?/issues/show/({Id}\d+)”>({Description}.+?)</a></td><td ><a href.+?>({Owner}.+?)</a></td>
Login request URL:${serverUrl}/login?username=${userId}&password=${password}&authenticity_token=${loginToken} [POST]
Login Form URL:${serverUrl}/login
Login Token Pattern:<input value=”(.+?)” />

Example:

Redmine Task Repository configuration

Now you can manage your tasks using Mylin.


source: http://devblog.griffolabs.ru/?p=11



OR | AND




(I got tired of scrubbing spam from this page, please contact me 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.)

HowTo connect a Mylyn repository to Redmine

These instructions should work with redmine 0.9 stable and up.

There are 2 options to connect Mylyn to redmine: either install the connector in your redmine install (this obviously needs the ability to install a plugin on the redmine you want to use it with), or use the generic web connector, which scraps the html pages for the information it needs, and thus should work with pretty much every up-to-date enough redmine installation out there.

Using specialized Redmine-Mylyn connector

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

Screenshot for the mylyn connector, contributed by Metello Bordin

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 http://download.eclipse.org/tools/mylyn/update/incubator).

Create a Task Repository

  1. Right-click on the task repositories list and click Add task repository
  2. Choose Web Template (Advanced) and click Next
  3. Configure the repository:
Server: http://www.redmine.org -- Replace it with the URL of your Redmine instance
Task URL: ${serverUrl}/issues/
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>
Login request URL: ${serverUrl}/login?username=${userId}&password=${password}&authenticity_token=${loginToken} [POST]
Login Form URL: ${serverUrl}/login
Login Token Pattern: <input name="authenticity_token" type="hidden" value="(.+?)" />

Example:

Current screenshot, contributed by Sebastian T. Hafner

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

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>({Optional}<td class="assigned_to"><a href.+?>({Owner}.+?)</a></td>)?

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

Create a Query

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

mylyn-repository-properties.png (88,06 КБ) Jean-Philippe Lang, 2008-05-03 19:55

mylyn-task-list.png (47,23 КБ) Jean-Philippe Lang, 2008-05-03 19:55

mylyn-repository-properties-2.png - Current screenshot, contributed by Sebastian T. Hafner (157,49 КБ) Felix Schäfer, 2010-07-13 16:00

redmin-mylyncon.png - Screenshot for the mylyn connector, contributed by Metello Bordin (33,91 КБ) Felix Schäfer, 2010-08-09 09:36



Источник: http://www.redmine.org/projects/redmine/wiki/HowTo_Mylyn
Категория: Справочные материалы | Добавил: admin (12.09.2011)
Просмотров: 2549 | Комментарии: 1 | Теги: redmine, mylyn | Рейтинг: 0.0/0
Всего комментариев: 0
Имя *:
Email *:
Код *:
Поиск

Друзья сайта
  • Официальный блог
  • Сообщество uCoz
  • FAQ по системе
  • Инструкции для uCoz


  • Copyright MyCorp © 2024