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

RTC-CRJAZ6032E Multiple timelines in the same project area use the same identifier

 Hi there,


I am trying to copy the timelines from one project area to another. The first timeline is created in other project area, after that I am getting the following error.

CRJAZ6032E Multiple timelines in the same project area use the same identifier.

Code Snippet:

private static void save(IDevelopmentLineHandle iDevelopmentLineHandle, IAuditableClient iAuditableClient, List<IProjectArea> allProjectAreas, IProcessItemService service, IProgressMonitor monitor) throws TeamRepositoryException {
IDevelopmentLine sDevelopmentLine = (IDevelopmentLine) iAuditableClient.fetchCurrentAuditable(iDevelopmentLineHandle, ItemProfile .createFullProfile(IDevelopmentLine.ITEM_TYPE), null);
IProjectArea dProjectArea=null;
Iterator<IProjectArea> iterator = allProjectAreas.iterator(); 
       while (iterator.hasNext()) { 
           dProjectArea = iterator.next(); 
           if ("Destination Project Area (CCM)".equals(dProjectArea.getName())) { 
               break; 
           } 
       } 
       System.out.println(dProjectArea.getName()); 
       dProjectArea=(IProjectArea) dProjectArea.getWorkingCopy();
   dProjectArea = (IProjectArea) service.getMutableCopy(dProjectArea);
  IDevelopmentLine dDevelopmentLine = (IDevelopmentLine) IDevelopmentLine.ITEM_TYPE.createItem();
  dDevelopmentLine.setEndDate(sDevelopmentLine.getEndDate());
  dDevelopmentLine.setId(sDevelopmentLine.getName());
  dDevelopmentLine.setName(sDevelopmentLine.getName());
  dDevelopmentLine.setProjectArea(dProjectArea);
  dDevelopmentLine.setStartDate(sDevelopmentLine.getStartDate());
  dProjectArea.addDevelopmentLine(dDevelopmentLine); 
  service.save(new IProcessItem[] {dProjectArea, dDevelopmentLine }, monitor); 
}

0 votes



One answer

Permanent link

 I am getting the error in the last line of code.


service.save(new IProcessItem[] {dProjectArea, dDevelopmentLine }, monitor); 

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
× 1,221

Question asked: May 03 '17, 7:55 a.m.

Question was seen: 1,980 times

Last updated: May 03 '17, 7:56 a.m.

Confirmation Cancel Confirm