indication / redmine-java-api

Redmine Java API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redmine/Chiliproject Java API.

Gradle dependency:

dependencies {
    compile 'com.taskadapter:redmine-java-api:2.1.0'
}

Check the latest release version in Maven Central

Sample code.

Sample code to retrieve list of Redmine issues:

private static String uri = "https://www.hostedredmine.com";
private static String apiAccessKey = "a3221bfcef5750219bd0a2df69519416dba17fc9";
private static String projectKey = "taskconnector-test";
private static Integer queryId = null; // any

RedmineManager mgr = RedmineManagerFactory.createWithApiKey(uri, apiAccessKey);
List<Issue> issues = mgr.getIssueManager().getIssues(projectKey, queryId);
for (Issue issue : issues) {
    System.out.println(issue.toString());
}

How to contribute to the project.

  • Install Gradle 2.1+.
  • To build in command line: run "gradle build".
  • To open the project code in IDEA or Eclipse: open "build.gradle" file. Your IDE will create a project basing on the gradle's script.
  • Please make sure you add unit and/or integration tests when submitting your changes. Don't forget to document the required Redmine version and other limitations.

About

Redmine Java API

License:Apache License 2.0


Languages

Language:Java 100.0%