Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to create Iteration Plan programatically?

- create Iteration Plan programatically
- associate workitems to this plan (programatically)

thanks

0 votes



5 answers

Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
http://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=65697

0 votes


Permanent link
 This is one way of creating iteration:

IProcessItemService service= (IProcessItemService) repo.getClientLibrary(IProcessItemService.class);

IIteration newIteration = (IIteration) IIteration.ITEM_TYPE.createItem();

newIteration.setName("Ssdfecowsdfnd Iteration");

newIteration.setId("193");

IDevelopmentLine workingDevLine = (IDevelopmentLine) devLine.getWorkingCopy();

workingDevLine.addIteration((IIterationHandle) newIteration.getItemHandle());

newIteration.setDevelopmentLine(workingDevLine);

service.save(new IProcessItem[] { workingDevLine, newIteration }, monitor);

0 votes


Permanent link
 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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,074

Question asked: Dec 09 '08, 9:19 p.m.

Question was seen: 10,397 times

Last updated: Aug 15 '12, 7:52 a.m.

Confirmation Cancel Confirm