It's all about the answers!

Ask a question

SCM Findworkspacebyname Functionality


vinitha dsouza (1451686) | asked Jul 23 '19, 8:20 a.m.

One answer



permanent link
David Lafreniere (4.8k7) | answered Sep 30 '19, 11:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
You should be using IWorkspaceManager#findWorkspaces() instead as IWorkspaceManager#findWorkspacesByName() is deprecated.

This API takes in a IWorkspaceSearchCriteria. So, if you want to find workspaces with an exact name for example, you would use: IWorkspaceSearchCriteria.setExactName().

You would need to run this as a user who is an adminstrator, otherwise repository workspaces or streams might be private (inaccessible) to the logged in user.

Your answer


Register or to post your answer.