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

Children Linking Order in Operation Advisor.

 When linking child work items in an operation advisor, the list of children as seen from the parent links view is in a random order, even if the work items are being linked sequentially.

e.g. 
What could be the issue?

The code used is this.
for (IWorkItem child : children) {
System.out.println("");
IWorkItemReferences references = saveParameter.getNewReferences();
List<IReference> allrefs = references.getReferences(WorkItemEndPoints.CHILD_WORK_ITEMS);
for (IReference iReference : allrefs) {
System.out.println(iReference.getLink() +" : "+ iReference.getComment());
}
workItemService.saveWorkItem2(child, null, null);
System.out.println(child.getId());
IReference newReference = IReferenceFactory.INSTANCE.createReferenceToItem(child,child.getHTMLSummary().getPlainText());
   references.add(WorkItemEndPoints.CHILD_WORK_ITEMS, newReference);
   
}


When using the SYSOUT, the order is correctly displayed in the console. Just RTC is showing it as shown in the screen shot. Please Advise.

0 votes



One answer

Permanent link

If you perform changes to a work item in an advisor you likely violate the interface. see https://rsjazz.wordpress.com/2012/12/14/do-not-modify-the-triggering-element-in-an-operationadvisor/ . An advisor basically only advises e.g. prevents a save.

The order of elements in whatever list and the order of how they are displayed by a user interface are not necessarily the same. For example you get alphabetical order in some places.

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
× 10,938

Question asked: Jan 16 '17, 3:21 a.m.

Question was seen: 1,363 times

Last updated: Jan 16 '17, 3:29 a.m.

Confirmation Cancel Confirm