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

can we get component names and stateid by giving UUID?

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.

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

Thank you Ralph for your support.

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: Jul 31 '15, 6:28 a.m.

Question was seen: 2,864 times

Last updated: Jul 31 '15, 7:55 a.m.

Confirmation Cancel Confirm