Is it possible to query assets based on the SHORT description?
![]() Hello, Can you please advise if it is possible to query via the RAM (7.5.1.2) Java API to find assets by:
- Short Description AND - Version
I have created the following, however it appears this is using the long description, not the short description:
RAMAssetQueryBuilder queryString = new RAMAssetQueryBuilder(session); queryString.addQueryField(queryString.QUERY_FIELD_DESCRIPTION, assetShortDescription); I couldnt see anything obvious to do this at the following locations: Thanks!
|
Accepted answer
![]()
Sheehan Anderson (1.2k●4)
| answered Aug 13 '13, 2:03 p.m.
JAZZ DEVELOPER edited Aug 13 '13, 2:04 p.m.
It's not documented, but here's the code to search the short description.
import com.ibm.ram.client.RAMAssetQueryBuilder; Angela Borchard selected this answer as the correct answer
Comments Hi Sheehan, Can we publish this search strng to RAM Java document as well? Thanks! It's too late to add this to the documentation for the 7.5.2 release, but you can open an enhancement for a future release. |
3 other answers
![]()
Roy yu (41●1)
| answered Aug 13 '13, 9:36 a.m.
JAZZ DEVELOPER edited Aug 13 '13, 11:14 a.m. by Rich Kulp (3.6k●3●8)
Hi Angela.
The query for short description are : AssetManager.QUERY_SHORT_DESCRIPTION and IndexConfigImpl.ASSET_SHORT_DESCRIPTION . But those two classes cannot be put into RAMSession.getAsset(SearchQuery query). And the SearchQuery class and its subclasses don't support the shot description query. I think there is no way to do that search with JAVA API |
![]()
Currently this is an internal field. But the search string for this is "_shortDescription_". See if that works.
|
|
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.