How to create Iteration Plan programatically?
- create Iteration Plan programatically
- associate workitems to this plan (programatically) thanks |
5 answers
bruno.braga wrote:
- create Iteration Plan programatically That is currently not possible as the Agile Planning component does not surface API. Please file an enhancement request. -- Cheers, Johannes Agile Planning Team |
Hi,
I want to create new Iterations programatically in RTC 2.0.0.2 ifix2. But i don't know how to do. Please let me know whether it is possible or not in RTC. Thanks |
|
This is one way of creating iteration:
|
I asked here but I found a solution and I created that method to do that:
public static IIteration createIteration(IRepositoryItemService repositoryService, IProcessServerService processService, IDevelopmentLine iDevelopmentLine, String name, String id, Date startDate, Date endDate) throws TeamRepositoryException {
IDevelopmentLine timeLine = (IDevelopmentLine) repositoryService.fetchItem(iDevelopmentLine, IRepositoryItemService.COMPLETE);
IIteration newIteration = (IIteration) timeLine.getCurrentIteration().getItemType().createItem();
IDevelopmentLine timeLineCopy = (IDevelopmentLine) timeLine.getWorkingCopy();
newIteration.setDevelopmentLine(iDevelopmentLine);
newIteration.setHasDeliverable(true);
newIteration.setName(name);
newIteration.setId(id);
newIteration.setStartDate(startDate);
newIteration.setEndDate(endDate);
timeLineCopy.addIteration(newIteration);
processService.saveProcessItems(new IProcessItem[] {newIteration, timeLineCopy});
return newIteration;
}
Thanks
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.