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

Is it possible to set long description of an asset via the RAM java API?

Hello,

I need to migrate some data from an old RAM (7.1) instance into a new RAM (7.5.1.2)instance via the Java API.

     RAMAsset asset;
     asset.setDescription("This is the short description");       

I can see that it is possible to set the short description as per the method above, however I also need to migrate the long description (HTML formatted).

Can you please advise if this is possible to get this information from the old RAM and to upload via the API to the new RAM?



         AssetAttribute attribute = newAsset.getAssetAttribute("Description");
         attribute.setValues(new String[]{"----HTML GOES IN HERE------"});

         session.put(newAsset, new NullProgressMonitor());

Thanks!

-Angela

0 votes


Accepted answer

Permanent link
RAMAsset has setDescription(String) to set the long description. There's also a setShortDescription(String) for the short description.
Angela Borchard selected this answer as the correct answer

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
× 10,938

Question asked: Dec 04 '12, 9:47 p.m.

Question was seen: 4,621 times

Last updated: Dec 05 '12, 9:26 a.m.

Confirmation Cancel Confirm