It's all about the answers!

Ask a question

Iterations disappear and/or never show up in the menu


Kai Nehring (3116) | asked May 16 '08, 4:52 p.m.
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);

2 answers



permanent link
Lorelei Ngooi (1.5k22) | answered May 18 '08, 1:36 p.m.
JAZZ DEVELOPER
Hi Kai,

You also need to call the IIteration.setHasDeliverable(true) method in order to see the iterations from the drop-down list. Only iterations that have a scheduled release will appear in the drop-down.

Lorelei
Jazz CQ Connector Team

permanent link
Patrick Streule (4.9k21) | answered May 16 '08, 5:29 p.m.
JAZZ DEVELOPER
Hi Kai

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

Your answer


Register or to post your answer.