How to get latest version of asset
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
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. |
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 |
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) See the "Versioning an asset" topic at |
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.