我正在尝试获得项目的所有问题,然后找到哪些已完成,但我不知道如何.
我将用户连接到Jira,并希望得到他所有的项目和所有问题.然后我想找到,完成了哪些问题.请问有人帮帮我吗?
我有这个:
Iterable <BasicProject> allProj;
this.yourUsername = userName;
this.yourPassword = password;
this.jiraServerUri = new URI("https://applifting.atlassian.net");
this.factory = new JerseyJiraRestClientFactory();;
this.restClient = factory.createWithBasicHttpAuthentication(jiraServerUri, yourUsername, yourPassword);
final NullProgressMonitor pm = new NullProgressMonitor();
allProj = this.restClient.getProjectClient().getAllProjects(pm);
for(Iterator<BasicProject> i = allProj.iterator(); i.hasNext(); ) {
BasicProject proj = i.next();
Project ActualProject = this.restClient.getProjectClient().getProject(proj.getKey(), pm);
ComponentRestClient cm =
}
Run Code Online (Sandbox Code Playgroud)
我想在这个for循环中,当我拥有所有项目时,我应该得到所有问题.