How To See Tracker Items Within Eclipse: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Madmetzger
imported>Filinep
Added steps for setting up repository and queries, and refining queries
 
(20 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{Navigation for Stendhal Builders and Hosters}}
{{Navigation for Stendhal Builders and Hosters}}


Some might want to see the open tracker items or other helpful queries from within their IDE. With Eclipse and Mylyn you have the possibility to access the project's trackers from within your Eclipse. This page is going to describe how to get this feature into your Eclipse and describes some basics about how to access the trackers with this infrastructure.
Some might want to see the open tracker items or other helpful queries from within their IDE. With Eclipse and Mylyn you have the possibility to access the project's trackers from within your Eclipse. This page is going to describe how to get this feature into your Eclipse and describes some basics about how to access the trackers with this infrastructure. This article is based on Eclipse Indigo (version 3.7).

== Installation and Preparation ==
== Installation and Preparation ==
To make this feature available in your Eclipse IDE you need to install two new plugins:
To make this feature available in your Eclipse IDE you need to install two new plugins:
Line 16: Line 17:


With those three update sites enabled you can now install Mylyn and the connector.
With those three update sites enabled you can now install Mylyn and the connector.

== Setting Up the Repository ==
The first step to access the trackers is to add a task repository for each tracker (in our case its only one: stendhal) based on the sourceforge template that comes with the freshly installed connector.

* Open the "Task Repositories" view
* Right-click the view and choose "Add task repository"
* Select "Web Template (Advanced)" and click next
* From the "Server" drop down menu choose "Sourceforge (jCommander)"
* Change the "Label" to help identify the repository e.g. Stendhal
* (Optional) Untick "Anonymous" and enter your sourceforge login details
* Expand "Additional Settings"
* Edit the "group_id" parameter and change it to Arianne's id: 1111
* The "atid" parameter will be changed later
* Expand "Advanced Configuration" and paste the following into "Query Request URL":<br>
${serverUrl}/tracker/?atid=${atid}&group_id=${group_id}&func=browse
* Click "Finish"


== Access Different Trackers ==
== Access Different Trackers ==
After having the repositories configured it is possible to query them.
* Add Task Repository
* Open the "Task List" view to add the query
* Add Queries
* Right-click the view and choose New -> Query
* Examples: Open Bugs, Open Patches
* Change "Query Title" and "atid" parameter for the different trackers as follows (Create a new query for each of them):
** 351111 for the feature requests tracker
** 973767 for the developers' tracker
** 101111 for the bug tracker
** 201111 for the support requests tracker
** 301111 for the patches tracker
* Click "Finish"

== Refining the Queries ==
The query can be refined by changing the "Query URL" of each query.

To show 100 items (that's the most I can show, I couldn't show all the items) add &limit=100 to the end of the query:
${serverUrl}/tracker/?atid=${atid}&group_id=${group_id}&func=browse&limit=100

To get all the issues that are assigned to a specific user you need to know the id associated with the user's sourceforge account. This can be obtained by going to that user's sourceforge user page (sourceforge.net/users/xxx where xxx is the username). In the "About Me" block it shows the "User Id". Put that number in the query with &assignee=yyy where yyy is the user ID.
${serverUrl}/tracker/?atid=${atid}&group_id=${group_id}&func=browse&assignee=SourceforgeUserID

To get all open issues add &status=1 to the query
${serverUrl}/tracker/?atid=${atid}&group_id=${group_id}&func=browse&status=1

Note that these can be mixed and matched so you can get 100 open issues by adding &limit=100&status=1 to the query.

== Working with Tasks ==
== Working with Tasks ==
* Activate Task -> Work on bug, complete fixing -> mark tas as completed -> commit has a well prepared commit message prepared and the relevant files are already grouped into a dedicated change set automatically
* Activate Task -> Work on bug, complete fixing -> mark task as completed -> commit has a well prepared commit message prepared and the relevant files are already grouped into a dedicated change set automatically
* TODO: Is this helpful? What about the automatic commit comment feature of Mylyn?
* TODO: Is this helpful? What about the automatic commit comment feature of Mylyn?
== Links ==
[http://wiki.eclipse.org/Using_Sourceforge_with_Mylyn Sourceforge with Mylyn on wiki.eclipse.org]