Using Ram java api to search assets with attributes
![]()
Hi all,
How can we search assets with java api by using custom attributes we created for assets?
For example lets say i have an asset asset1 and it has a an attriubte named "attribute1" rather than default attributes.
I tried following code but it didnt work, it cant find assets.
SearchQuery query = session.createAssetQuery("name:(" + assetName+ ") attribute1:(" + attrvalue+ ")");
Any suggestions?
thanks.
|
Accepted answer
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.