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

How do I programmatically find the UUID for a Workspace

I am creating an extension in which I need to create a new Workspace and then attach that Workspace to a Build Definition. I can create the Workspace but I can't figure out how to find the UUID so it can be added to the Build Definition. 

When I create the Workspace from the Workspace Manager, I get an object that implements IWorkspaceConnection. If I have an object the implements IWorkspace I can get the UUID of the Workspace. However, if I cast the object that I get from the Workspace Manager to IWorkspace I get a Class Cast exception.


0 votes


Accepted answer

Permanent link
You can get the IWorkspace by calling #getResolvedWorkspace() on your IWorkspaceConnection.
Andrew Soloninka selected this answer as the correct answer

1 vote

Comments

Tim, Thanks, It worked 

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

Question asked: Feb 15 '13, 11:03 a.m.

Question was seen: 3,561 times

Last updated: Feb 15 '13, 4:12 p.m.

Confirmation Cancel Confirm