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

Changing asset's community

Hi all,
I'm just wondering if is it possible to move an asset from a community to another via API.
Is it possible?

Thanks!

Regards

Andrs

0 votes



One answer

Permanent link
Given that you have permissions to move that asset:


session.setWebServiceTimeout(10000);

RAMAsset asset = session.getAsset(new AssetIdentification("8EBA94E9-3778-FFF7-FC19-8EA4E078963A", "1.0"));


System.out.print("Asset's Community: " + asset.getCommunity().getName());
asset.setCommunity(session.getCommunity("Open Source Pilot"));
session.put(asset, new NullProgressMonitor());
System.out.print("\nAsset updated with Community: " + asset.getCommunity().getName());
session.release();

0 votes

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

Question asked: Feb 23 '11, 7:16 a.m.

Question was seen: 4,523 times

Last updated: Feb 23 '11, 7:16 a.m.

Confirmation Cancel Confirm