我自己没有尝试过,但是如果您查看 fisheye 插件,那么如何使用 EQL 查询访问该信息可能非常有启发性。
http://confluence.atlassian.com/display/FISHEYE/EyeQL+Reference+Guide
鱼眼插件的代码摘录:
https ://studio.plugins.atlassian.com/source/browse/~raw,r=157831/FISH/trunk/src/main/java/com/atlassian/jirafisheyeplugin/ChangeSetManagerImpl.java
` public ChangeSets getChangesetsForIssue(final String issueKey, String projectKey) { SearchConfig searchConfig = new SearchConfig(fisheyeConfig.getMaxIssueChangeSets(), false, false, true, SearchConfig.SEARCHTYPE_CHRONOLOGICAL);
P4Query query = new P4Query() {
public Object doQuery(FishEyeRepository rep, boolean searchJobId) throws IOException {
EyeQLQuery query = new EyeQLQuery();
query.setDir("/");
if (searchJobId) {
query.addWhereClause(WhereClauseFactory.issueKeyOrJobIdMatches(issueKey));
} else {
query.addWhereClause(WhereClauseFactory.issueKeyMatches(issueKey));
}
query.setOrderByDate(true);
query.setGroupBy(EyeQLQuery.GROUP_BY_CHANGESET);
query.addReturnClause("csid");
return apiManager.callFisheye(rep, RestCommandFactory.query(query), CsIdParser.PARSER);
}
};
ChangeSets changesets = searchForChangeSets(projectKey, query, searchConfig);
changesets.applyFilter(new IssueKeyInCommentOrJobIdFilter(issueKey));
return changesets;
}
`