It's all about the answers!

Ask a question

How to get the last version of an Asset?


Luis Ennser (1675) | asked Apr 30 '10, 11:11 a.m.
I am using RAM Client API and want to retrieve an asset that has several Versions, I only want that last one. Is there a smart solution or do I have to scroll through the SearchResult?

Thx

One answer



permanent link
Kevin Bauer (34621) | answered Apr 30 '10, 11:31 a.m.
JAZZ DEVELOPER
I am using RAM Client API and want to retrieve an asset that has several Versions, I only want that last one. Is there a smart solution or do I have to scroll through the SearchResult?

Thx


You can use...


RAMAsset asset = session.getAsset(new AssetIdentification(GUID, "*"));


to get the latest version if all versions are in lexicographical order. You can also use other patterns such as...


RAMAsset asset = session.getAsset(new AssetIdentification(GUID, "4.0*"));


to get the latest 4.0x version of your asset.

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.