Skip to main content

Integrate Redmine with Eclipse

Install Mylyn Tasks Connector: Web Templates
 1. Add Mylyn Incubator plugin into eclipse
Name : Mylyn Incubator
Location : http://download.eclipse.org/mylyn/incubator/3.8

Adding Redmine Task Repository
1. Open Task Repository View
2. Click Add Task Repository
3. Select Web Template (Advanced)
4. Next
5. Add the following 
Server : http://serverurl/redmine
Label : Redmine Instance
User ID :
Password :
Under Additional Settings 
- Add loginToken
Under Advanced Configuration add the following
Task URL : ${serverURL}/issues/
New Task URL : ${serverURL}/projects//issues/new
Login Request URL : ${serverUrl}/login?username=${userId}&password=${password}&authenticity_token=${loginToken}  
Login Form URL : ${serverUrl}/login 
Login Token Pattern

Adding Query to Task List View
1. Open Task List View
2. Right Click - New - Query
3. Select Redmine Instance in the List of Repositories
4. Next
5. Enter the following 
Query Title : My Redmine Tasks
Under Advanced Configuration
Query URL : ${serverUrl}/projects//issues?query_id=2 ( URL of a prepared Custom Query in Redmine)
Query Pattern : <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>)?



6. Click Preview to verify data can be retrieved
7. Finish

Setup Mylyn Team Preference
When a task is activated and changes is checked in the comments will be prepopulated
1. Window - Preferences - Type Mylyn - Team
2. Under Commit Comment Template put ${connector.task.prefix} #${task.key} : 

Setup Redmine Repository Settings
1. Click Administrations - Settings - Repositories
2. In the Referencing keywords add "task"

3. Click Save

Conclusion
By doing this, the revision will automatically be associated to the Redmine task the developer chose to activate in the the task list. 

Comments

La Plomada said…
Hello, I am following your step to configure redmine in eclipse but when i create a web query i have this error "No matching results. Check query regexp"

I am using eclipse juno 4.2 and redmine 2.2

Could you help me?

Resgards

Popular posts from this blog

How to set CATALINA_HOME/PATH variables in Windows

1. Download  apache-tomcat-6.x.x.zip and unzip to C:\Apache\Tomcat. This should result in C:\Apache\Tomcat\apache-tomcat-6.x.x 2. Right click on the My Computer and select properties 3. Click Advanced Tab 4. Click Environment Variables 5. Under System Variables, click New 6. In the Variable name field, enter CATALINA_HOME 7. In the Variable value field, enter the path to where the Tomcat is installed 8. Under System Variables,  look for Path and click Edit 9. In the Variable value, add %CATALINA_HOME%\bin; 10. Click OK 11. Click Apply

Jasper Report with embedded SQL using Struts2 + Spring Framework

We have decided that in order to make our Jasper Reports portable we need to start embedding SQL queries in our JasperReports. The plan is for all future Jasper Reports with embedded SQL queries be deployed to a dedicated JasperServer. This way the applications do not hang when someone runs a huge report; this will prevent hair being pulled out of frustration. Our environment uses Struts 2-Spring-Hibernate + Jasper for reporting. The challenge is how to pass the connection to the JasperReports. So here is the solution I came up with: 1. Make sure that the dataSource is declared in Spring. 2. Add a DataSource variable to the Action. In this example I autowired the datasource; it can also be mapped declaratively.  3. Add a Connection variable in the Action and a getter. The connection will be set when the method that will return the Report is called. 4. In the struts.xml, provide the connection parameter name with the name of the connection variabl...