<dependency> <groupId>com.taskadapter</groupId> <artifactId>redmine-java-api</artifactId> <version>1.25</version> </dependency>
1.获取bug相关信息
2.获取搜索信息
private RedmineManager mgr; @SuppressWarnings("deprecation") public RdmineUtil(){ mgr = new RedmineManager("http://api.redmine.meizu.com/", username,password); } @SuppressWarnings("unused") private Issue getIssueById(int issueId) throws Exception { return mgr.getIssueById(issueId); } @SuppressWarnings("unused") private List<Issue> GetRelateIssues(String projectId,String issueId) throws Exception { Map<String,String> u=new HashMap<String,String>(); u.put("project_id", projectId);//project id u.put("utf8", "✓"); u.put("f[]", "relates"); u.put("op[relates]", "="); u.put("v[relates][]", issueId); // issue id return mgr.getIssues(u); //get relate issues list }