Jump to: navigation, search

Difference between revisions of "Using Sourceforge with Mylyn"

(New page: The Generic Web Repository Connector of Mylyn can be used to integrate [http://sourceforge.net Sourceforge] trackers as task repositories inside Eclipse. This page describes the necess...)
 
m
Line 1: Line 1:
The Generic Web Repository Connector of [[Mylyn]] can be used to integrate [http://sourceforge.net Sourceforge] trackers as task repositories inside Eclipse. This page describes the necessary configuration to be able to connect to multiple Sourceforge projects and to browse all their tracker items (including project member only trackers).
+
[[Category:Mylyn]]
 +
 
 +
The Generic Web Repository Connector of [[Mylyn]] can be used to integrate [http://sourceforge.net Sourceforge] trackers as task repositories inside Eclipse. This page describes the necessary configuration to be able to connect to multiple Sourceforge projects and to browse all their tracker items (including project member only trackers). Required settings are also available from the pre-packaged templates that can be selected in the web connector repository configuration.
  
 
== Preconditions ==
 
== Preconditions ==
Line 9: Line 11:
 
Create a new task repository (inside the view "task repositories") and use these configuration items:
 
Create a new task repository (inside the view "task repositories") and use these configuration items:
  
: Server: <nowiki>http://sourceforge.net/tracker</nowiki>
+
: Server: <nowiki>http://sourceforge.net/</nowiki>
 
: Label: Sourceforge
 
: Label: Sourceforge
 
: Anonymous Access: (off)
 
: Anonymous Access: (off)
Line 16: Line 18:
 
: Additional Settings (open it)
 
: Additional Settings (open it)
 
: Advanced Configuration (open it)
 
: Advanced Configuration (open it)
: Login Request URL: <nowiki>https://sourceforge.net/account/login.php?form_loginname=${userId}&form_pw=${password}&login=Login</nowiki>
+
: Login Request URL: <nowiki>${serverUrl}/account/login.php?form_loginname=${userId}&form_pw=${password}&login=Login</nowiki>
 
: Button after "Login Request URL": switch to "POST"
 
: Button after "Login Request URL": switch to "POST"
  
Note: If you want to integrate Mylyn with multiple Sourceforge projects, you do '''not''' need multiple repositories. Instead you will overwrite some of the configuration parameters in the queries.
+
Note: If you want to integrate Mylyn with multiple Sourceforge projects, you do '''not''' need multiple repositories. Instead you can create multiple queries in the task list with corresponding configuration parameters.
  
 
== Queries ==
 
== Queries ==
Line 30: Line 32:
 
: group_id: ''the numbers following the group_id parameter in the URL you just opened in the browser''
 
: group_id: ''the numbers following the group_id parameter in the URL you just opened in the browser''
 
: atid: ''the numbers following the atid parameter in the URL you just opened in the browser''
 
: atid: ''the numbers following the atid parameter in the URL you just opened in the browser''
: Query URL: ${serverUrl}/?group_id=${group_id}&atid=${atid}&set=custom&_status=1
+
: Query URL: ${serverUrl}/tracker/?group_id=${group_id}&atid=${atid}&set=custom&_status=1
  
 
This creates a list of open items in this tracker.
 
This creates a list of open items in this tracker.
  
 
If you want a list of open items which are assigned to you, use this query URL instead:
 
If you want a list of open items which are assigned to you, use this query URL instead:
: Query URL: ${serverUrl}/?group_id=${group_id}&atid=${atid}&set=custom&_assigned_to=''SourceforgeUserID''&_status=1
+
: Query URL: ${serverUrl}/tracker/?group_id=${group_id}&atid=${atid}&set=custom&_assigned_to=''SourceforgeUserID''&_status=1
  
 
You can create additional queries which have the same abilities to filter and extract items from the tracker as you can do with the tracker web page itself. You only need to add more parameters to the query URL. You can find the available parameters by inspecting the source code of the tracker web page.
 
You can create additional queries which have the same abilities to filter and extract items from the tracker as you can do with the tracker web page itself. You only need to add more parameters to the query URL. You can find the available parameters by inspecting the source code of the tracker web page.

Revision as of 10:39, 8 July 2007


The Generic Web Repository Connector of Mylyn can be used to integrate Sourceforge trackers as task repositories inside Eclipse. This page describes the necessary configuration to be able to connect to multiple Sourceforge projects and to browse all their tracker items (including project member only trackers). Required settings are also available from the pre-packaged templates that can be selected in the web connector repository configuration.

Preconditions

Eclipse Europa, Mylyn and the Generic Web Repository Connector (from the Mylyn additional downloads) are needed to follow these steps.

Repository

Create a new task repository (inside the view "task repositories") and use these configuration items:

Server: http://sourceforge.net/
Label: Sourceforge
Anonymous Access: (off)
User ID: your Sourceforge username
Password: your Sourceforge password
Additional Settings (open it)
Advanced Configuration (open it)
Login Request URL: ${serverUrl}/account/login.php?form_loginname=${userId}&form_pw=${password}&login=Login
Button after "Login Request URL": switch to "POST"

Note: If you want to integrate Mylyn with multiple Sourceforge projects, you do not need multiple repositories. Instead you can create multiple queries in the task list with corresponding configuration parameters.

Queries

Now that the repository is known in Mylyn you can create queries to show bugs, feature requests and other tracker items inside Eclipse. First take a web browser and open the tracker page of the Sourceforge tracker you want extract items from (e.g. the bug tracker of your project). After loading the page in your browser the URL contains pieces like "group_id=12345" and "atid=67890". You need those numbers in the next steps.

Use the right mouse button menu on the task repository created in the first step and select "New query". Select the "Sourceforge" repository. In the following dialog use these configuration items:

Label: Label of the tracker you opened with the browser, e.g. "Bugs"
group_id: the numbers following the group_id parameter in the URL you just opened in the browser
atid: the numbers following the atid parameter in the URL you just opened in the browser
Query URL: ${serverUrl}/tracker/?group_id=${group_id}&atid=${atid}&set=custom&_status=1

This creates a list of open items in this tracker.

If you want a list of open items which are assigned to you, use this query URL instead:

Query URL: ${serverUrl}/tracker/?group_id=${group_id}&atid=${atid}&set=custom&_assigned_to=SourceforgeUserID&_status=1

You can create additional queries which have the same abilities to filter and extract items from the tracker as you can do with the tracker web page itself. You only need to add more parameters to the query URL. You can find the available parameters by inspecting the source code of the tracker web page.