It's all about the answers!

Ask a question

How to get latest version of asset


Abhinav Ajmera (22113020) | asked Sep 03 '10, 9:43 a.m.
Is there any way we can get latest version out of RAM?

There is session.getAsset(new AssetIdentification(String GUID, String Version) ) but I don't see any method in RAM API which will give latest version automatically, it always aspect programmer to provide the version to get the asset (what if user doesn't know latest version)...

PS : its for RAM 7.2

3 answers



permanent link
Kevin Bauer (34621) | answered Sep 04 '10, 9:56 p.m.
JAZZ DEVELOPER
Use session.getAsset(new AssetIdentification(GUID, "*");

I am aware that, API mention method session.getAsset(new AssetIdentification(GUID)); (The link you mentioned also show it, but if you open class API, that does not contain this method... Refer http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/topic/com.ibm.ram.api.doc/topics/com/ibm/ram/common/data/AssetIdentification.html?resultof=%22AssetIdentification%22%20%22assetidentif%22)

I even tried it before posting question... But it is not supported in actual... you can try it out in some program..



See the "Versioning an asset" topic at
http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/index.jsp?topic=/com.ibm.ram.doc/topics/t_using_api.html

According to this, you can use
session.getAsset(new AssetIdentification(GUID));
to retrieve the latest version.

permanent link
Abhinav Ajmera (22113020) | answered Sep 04 '10, 12:36 a.m.
I am aware that, API mention method session.getAsset(new AssetIdentification(GUID)); (The link you mentioned also show it, but if you open class API, that does not contain this method... Refer http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/topic/com.ibm.ram.api.doc/topics/com/ibm/ram/common/data/AssetIdentification.html?resultof=%22AssetIdentification%22%20%22assetidentif%22)

I even tried it before posting question... But it is not supported in actual... you can try it out in some program..



See the "Versioning an asset" topic at
http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/index.jsp?topic=/com.ibm.ram.doc/topics/t_using_api.html

According to this, you can use
session.getAsset(new AssetIdentification(GUID));
to retrieve the latest version.

permanent link
Sheehan Anderson (1.2k4) | answered Sep 03 '10, 10:10 a.m.
JAZZ DEVELOPER
See the "Versioning an asset" topic at
http://publib.boulder.ibm.com/infocenter/ramhelp/v7r2m0/index.jsp?topic=/com.ibm.ram.doc/topics/t_using_api.html

According to this, you can use
session.getAsset(new AssetIdentification(GUID));
to retrieve the latest version.

Your answer


Register or 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.