It's all about the answers!

Ask a question

IWorkitem List Manipulation


Moti Wertheimer (18913627) | asked May 13 '14, 9:07 a.m.
JAZZ DEVELOPER
edited May 13 '14, 3:46 p.m.
 Hi,

I have two lists of IWorkitem or IWorkItemHandle (e.g. ArrayList<IWorkItemHandle>)
I would like to perform Java List operations, like removeAll
So if I have a:
- workitemListA {1234, 4133, 4555} (I write the IDs)
- workitemListB {5133, 4133, 4555}
After performing: 
workitemListA.removeAll(workitemListB) 
it will contain only {1234}.

Since all workitem handles are pointers, this won't work in any case.
So need to implement compare using UUID.

I can write such wrapper class. but maybe such service already exists in the API/SDK?

Thanks,
Moti

Accepted answer


permanent link
Ralph Schoon (60.5k33643) | answered May 14 '14, 3:05 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Moti,

as discussed I have not come across anything I remember that was public API. At least that I remember. There are probably utilities in the API, but they are most likely internal API.
Moti Wertheimer selected this answer as the correct answer

Your answer


Register or to post your answer.