Any Idea to fetch the Plans from IBM RTC Project area Using Plain Java API? IMP
Accepted answer
I'm afraid RTC does not publish a public API for Plans management.
There are a couple of enhancement requests around it. For example:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=228742
Retrieving all plans from a Project Area using internal API must not be straight-forward. No one has posted sample code before for a reason, I guess.
Said that, if you still want to try, here's some code someone posted to retrieve IIterationPlanService using the Java Client API:
IIterationPlanService planService = (IIterationPlanService)((IClientLibraryContext) repo).getServiceInterface(IIterationPlanService.class);
Alternatively, depending on what you are trying to accomplish, there might be other alternatives.
If all you need is to list the Plans, BIRT will serve your purpose well. Browse the table com.ibm.team.apt.IterationPlanRecord under the LIVE_SNAPSHOT datasource.
4 other answers
Cannot help you with that. It's a very dark area you are getting into. As there is no public API, only a jazz developer will have the knowledge to run automations around Plans safely.
As I mentioned, there might be alternatives, but
As Ralph mentioned, you will have to provide more detail:
-
Clearly describe what you do or want to do, and what the problem/question is
- Explain why you want to do this and what you want to achieve with it - often problems are not problems in the tool, but knowing how to achieve certain goals; knowing what the intent is often directs to completely different answers
Comments
1 vote
1 vote
Please note that the planning API is not published in the Plain Java Client Libraries.
This is what I know about that API:
This is what I know about that API:
Creating Plans With the Plain Java Client API
It is often a great idea to use a search engine to find other examples.Comments
Hi,
Did anybody get plan using RTC SDK?, Please help me on this. I have loaded all the jar from SDK to my project, those are around 1300. but I don't know I'm not able resolve dependency. says methods are not visible. So should I change it in the respective class method's & field's access specifier?
@Ralph Schoon, @ramesh m : please help me if you get any solution around this.
Thanks,
Umesh
Did anybody get plan using RTC SDK?, Please help me on this. I have loaded all the jar from SDK to my project, those are around 1300. but I don't know I'm not able resolve dependency. says methods are not visible. So should I change it in the respective class method's & field's access specifier?
@Ralph Schoon, @ramesh m : please help me if you get any solution around this.
Thanks,
Umesh
@Umeshkumar Rajani , Please find the sample code from below. you will get all the sprints in that project area.
IDevelopmentLine line = null;
ArrayList<String> list = new ArrayList<String>();
ArrayList<ArrayList<String>> listall = new ArrayList<ArrayList<String>>();
IDevelopmentLineHandle[] developmentHandles = projectArea.getDevelopmentLines();
developmentLines = iTeamRepository.itemManager().fetchCompleteItems(Arrays.asList(developmentHandles),IItemManager.DEFAULT, null);
for (Iterator<Iteration> e = developmentLines.iterator(); e.hasNext();) {
line = (IDevelopmentLine) e.next();
IIterationHandle[] iterationHandles = line.getIterations();
list = PlannedForRecursive(iterationHandles);
if (list != null)
listall.add(list);
}
public ArrayList<String> PlannedForRecursive(IIterationHandle[] iterationHandles) {
ArrayList<String> interation_name = new ArrayList<String>();
List<Iteration> iterationlines = null;
IIteration iteration = null;
ArrayList<String> templist = null;
try {
if (iterationHandles != null) {
iterationlines = iTeamRepository.itemManager().fetchCompleteItems(Arrays.asList(iterationHandles),IItemManager.DEFAULT, null);
for (Iterator<Iteration> e1 = iterationlines.iterator(); e1.hasNext();) {
iteration = e1.next();
if (iteration != null && iteration.getName() != null && !iteration.isArchived())
interation_name.add(iteration.getName());
if (iteration.getChildren() != null) {
templist = PlannedForRecursive(iteration.getChildren());
}
if (templist != null) {
for (String sprintName : templist) {
if (sprintName != null) {
interation_name.add(sprintName);
LOG.info("planned Sprints:"+sprintName);
}
}
}
}
}
} catch (TeamRepositoryException e) {
e.printStackTrace();
}
return interation_name;
}
Comments
ramesh m
Sep 14 '15, 9:24 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Sep 14 '15, 9:43 a.m.ramesh m
Sep 14 '15, 9:54 a.m.