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

Get Workspace of Component

Hi, I want to ask how to get the workspace of a given component?

Do I need to use IWorkspaceSearchCriteria to query it? Or is there any simpler API I can use?

Thanks!

0 votes


Accepted answer

Permanent link
See, if this helps:


IWorkspaceSearchCriteria
criteria = IWorkspaceSearchCriteria.FACTORY.newInstance(); criteria.setKind(IWorkspaceSearchCriteria.STREAMS); IWorkspaceManager manager = SCMPlatform.getWorkspaceManager(repository); List< IWorkspaceHandle > workspaces = manager.findWorkspacesContainingComponent(component, criteria, Integer.MAX_VALUE);
Yung-Hsiang Chan selected this answer as the correct answer

1 vote


One other answer

Permanent link
You may refer to these articles for reference:

  • https://jazz.net/library/article/1229
  • https://rsjazz.wordpress.com/2013/09/24/managing-workspaces-streams-and-components-using-the-plain-java-client-libraries/

1 vote

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

Question asked: Nov 20 '14, 1:11 a.m.

Question was seen: 4,520 times

Last updated: Nov 20 '14, 7:29 a.m.

Confirmation Cancel Confirm