Iterations disappear and/or never show up in the menu
Hi,
I have a strange problem with Iterations. When I create an Iteration (code below), I can use that iteration to set the WorkItem-Target. The iteration will be displayed when I select the workItem in the browser or in TeamConcert. But I can't set that iteration as target for every other WorkItem because the iteration doesn't show up in the drop-down menu.
I can set the iteration as currentIteration but that doesn't change anything.
What's the problem and how can I solve it?
Thanks in advance
Kai
service = (IProcessItemService) repository.getClientLibrary(IProcessItemService.class);
IIteration iter;
iter = service.createIteration();
iter.setName(name);
iter.setId(id.toString());
iter.setStartDate(startDate.getTime());
iter.setEndDate(endDate.getTime());
IDevelopmentLine devLine = service.getDevelopmentLine(teamArea, monitor);
IDevelopmentLine mutableDevLine = (IDevelopmentLine) service.getMutableCopy(devLine);
newIteration.setDevelopmentLine(mutableDevLine);
mutableDevLine.addIteration(newIteration);
IProcessItem [] items = new IProcessItem;
items = newIteration;
items = mutableDevLine;
service.save(items, monitor);
I have a strange problem with Iterations. When I create an Iteration (code below), I can use that iteration to set the WorkItem-Target. The iteration will be displayed when I select the workItem in the browser or in TeamConcert. But I can't set that iteration as target for every other WorkItem because the iteration doesn't show up in the drop-down menu.
I can set the iteration as currentIteration but that doesn't change anything.
What's the problem and how can I solve it?
Thanks in advance
Kai
service = (IProcessItemService) repository.getClientLibrary(IProcessItemService.class);
IIteration iter;
iter = service.createIteration();
iter.setName(name);
iter.setId(id.toString());
iter.setStartDate(startDate.getTime());
iter.setEndDate(endDate.getTime());
IDevelopmentLine devLine = service.getDevelopmentLine(teamArea, monitor);
IDevelopmentLine mutableDevLine = (IDevelopmentLine) service.getMutableCopy(devLine);
newIteration.setDevelopmentLine(mutableDevLine);
mutableDevLine.addIteration(newIteration);
IProcessItem [] items = new IProcessItem;
items = newIteration;
items = mutableDevLine;
service.save(items, monitor);
2 answers
Hi Kai
Do you see the iteration in the Project Area editor Overview tab?
Patrick,
Jazz Work Item Team
I have a strange problem with Iterations. When I create an Iteration
(code below), I can use that iteration to set the WorkItem-Target.
The iteration will be displayed when I select the workItem in the
browser or in TeamConcert. But I can't set that iteration as target
for every other WorkItem because the iteration doesn't show up in the
drop-down menu.
I can set the iteration as currentIteration but that doesn't change
anything.
What's the problem and how can I solve it?
Do you see the iteration in the Project Area editor Overview tab?
Patrick,
Jazz Work Item Team