It's all about the answers!

Ask a question

Create IDevelopmentLine in a Project Area by programming


Francisco Javier Moreno López (087) | asked Jun 10 '09, 3:04 p.m.
Hello,

How can I create an IDevelopmentLine in a Project Area by programming?

Any help would be appreciated. Many thanks.

2 answers



permanent link
Ryan Manwiller (1.3k1) | answered Jun 10 '09, 6:44 p.m.
JAZZ DEVELOPER
If your code is running in the eclipse client, this should get you started:


IProcessItemService processService = (IProcessItemService) teamRepository.getClientLibrary(IProcessItemService.class);
projectArea = (IProjectArea) projectArea.getWorkingCopy();
IDevelopmentLine developmentLine = (IDevelopmentLine) IDevelopmentLine.ITEM_TYPE.createItem();
developmentLine.setId("id");
developmentLine.setProjectArea(projectArea);
projectArea.addDevelopmentLine(developmentLine);
IProcessItem[] saved = processService.save(new IProcessItem[] { projectArea, developmentLine }, progressMonitor);



---
Ryan Manwiller
Jazz Team

permanent link
Francisco Javier Moreno López (087) | answered Jun 11 '09, 3:55 a.m.
Thank you very much!


---
Ryan Manwiller
Jazz Team

Your answer


Register or to post your answer.