Integration with redmine and integration with redmine

Source: Internet
Author: User
Tags redmine

Integration with redmine and integration with redmine

Redmine version 2.3.0
1. Open the rest web service

2. jar dependency

<dependency>    <groupId>com.taskadapter</groupId>    <artifactId>redmine-java-api</artifactId>    <version>1.17</version></dependency>

3. Code

Public class test {public static void main (String [] args) {// TODO Auto-generated method stub RedmineManager mgr = new RedmineManager ("http: // xxxxxx/redmine ", "kongxianghao", "12345678"); try {tryGetIssues (mgr);} catch (Exception e) {e. printStackTrace () ;}} private static void tryGetIssues (RedmineManager mgr) throws Exception {// List <Project> list = mgr. getProjects (); Project project = mgr. getProjectByKey ("143"); // Tracker tk: project. getTrackers () {System. out. println (tk. getId () + "-->" + tk. getName ();} // List of project issues <Issue> issues = mgr. getIssues ("143", null); for (Issue issue: issues) {System. out. println (issue. getId () + issue. toString ());}}}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.