It's all about the answers!

Ask a question

can we get component names and stateid by giving UUID?


Surya Raj (17116) | asked Jul 31 '15, 6:28 a.m.
Hello All,

I'm getting only UUID by using this code:

List<IWorkspaceHandle> findWorkspaces1 = workspaceManager.findWorkspaces(cri1, Integer.MAX_VALUE, monitor);
                IWorkspaceHandle workspaceHandle3 = findWorkspaces1.get(0);
                 IScmService scmService = (IScmService) ((IClientLibraryContext) teamRepository).getServiceInterface(IScmService.class);
                 IComponentHandle[] components = scmService.getComponentsForWorkspace(workspaceHandle3, null);

How to get component name and StateID by giving UUID as input?

Kindly help me out. Thanks in advance.

Accepted answer


permanent link
Ralph Schoon (63.1k33646) | answered Jul 31 '15, 7:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Try https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ search for UUID. You can get an Item Handle from a UUID as described there if you know the Item Type. E.g.
IItemHandle handle = [itemtype].ITEM_TYPE.createItemHandle(UUID.valueOf(uuid_string), null);
Surya Raj selected this answer as the correct answer

Comments
Surya Raj commented Jul 31 '15, 7:55 a.m.

Thank you Ralph for your support.

Your answer


Register or 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.