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

How to get the ascending oreder of references in the RTC serverside plugin code

Hi All,

I would like to get the latest child references when trying to update the values from Parent workitems.

List<IReference> references = saveParameter.getNewReferences()
.getReferences(WorkItemEndPoints.CHILD_WORK_ITEMS);

output:
-------

Updating the Task Attibute Value '[com.ibm.team.links.internal.links.impl.ReferenceImpl@22c8b74 (internalId: [UUID _jo1jFifFEeaAT4XHrLlahw]) (uri: <unset>, referenceType: ITEM_REFERENCE, comment: 10: D3, referenceSide: <unset>, extraInfo: null, contentType: <unset>), com.ibm.team.links.internal.links.impl.ReferenceImpl@25f0c48b (internalId: [UUID _gm0jkCfFEeaAT4XHrLlahw]) (uri: <unset>, referenceType: ITEM_REFERENCE, comment: 8: D1, referenceSide: <unset>, extraInfo: null, contentType: <unset>), com.ibm.team.links.internal.links.impl.ReferenceImpl@77f7efee (internalId: [UUID _uh54ACe9EeaZ1pj5unSirw]) (uri: <unset>, referenceType: ITEM_REFERENCE, comment: 9: D2, referenceSide: <unset>, extraInfo: null, contentType: <unset>)]'.

In the above output, I would like to call the latest child workitem. The workitem ids are 8,9,10. But in the List it is showing 10,8,9. How to get in the acending order of the references like 8,9,10

Thanks in Advanced.
Regards.
Govindaraj.

0 votes



One answer

Permanent link
I don't think the list cares what the latest is, it also does not care for the work item ID's. If you want an order in the results, you have to order the data yourself.

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,941

Question asked: Jun 01 '16, 4:59 a.m.

Question was seen: 2,006 times

Last updated: Jun 01 '16, 6:31 a.m.

Confirmation Cancel Confirm