It's all about the answers!

Ask a question

Can't create new Iterations


Kai Nehring (3116) | asked May 07 '08, 5:44 p.m.
Hi,

I want to create new Iterations but I can't save them on the server because the development line is immutable. How can I add a new Iteration?

I used the following code:

...
IDevelopmentLine devLine = service.getDevelopmentLine(teamArea, null);

IIteration i = s.createIteration();
i.setName("My Iteration has no name");
i.setDevelopmentLine(devLine);
i.setId("M5");

s.save(i, null);


Thanks in advance,
Kai

One answer



permanent link
Kai-Uwe Maetzel (85611) | answered May 07 '08, 9:10 p.m.
JAZZ DEVELOPER
s.getMutableCopy(devLine) does the trick.

Kai
Jazz Process Team


kainehring wrote:
Hi,

I want to create new Iterations but I can't save them on the server
because the development line is immutable. How can I add a new
Iteration?

I used the following code:

...
IDevelopmentLine devLine = service.getDevelopmentLine(teamArea,
null);

IIteration i = s.createIteration();
i.setName("My Iteration has no name");
i.setDevelopmentLine(devLine);
i.setId("M5");

s.save(i, null);


Thanks in advance,
Kai

Your answer


Register or to post your answer.