It's all about the answers!

Ask a question

Unable to filter RRC REST result by using resourceURI


Erwin Kunz (94687086) | asked Mar 27 '13, 5:52 a.m.
RRC 4.0.1

Based on WIKI page i should be able to filter by ID

Filter id(s) https://server:port/rm/publish/[artifact_format]?resourceURI=id1,id2,id3 Provides base resource information for a set of specified resources

when I try with:
https://server/rm/publish/resources?resourceID=_V5CWFYDcEeKbvZGEq7ALCg
the system returns me all resources...after 10 min

only filter working is
https://server/rm/publish/resources?projectURI=_ZRCINYC-EeKbvZGEq7ALC

and this one does return the same
https://server/rm/publish/resources?projectURI=_ZRCINYC-EeKbvZGEq7ALCg&resourceID=_V5CWFYDcEeKbvZGEq7ALCg

Anything I missed?
How can I get only e.g. Title from a list of URI

Thank you
erwin

Comments
Erwin Kunz commented Mar 27 '13, 6:35 a.m.

embarrassing :-)

Thank you Christian

additional question
why does https://server/rm/publish/resources?projectURI=_ZRCINYC-EeKbvZGEq7ALCg&resourceURI=_WG5y9YDcEeKbvZGEq7ALCg&fields=dataSource/artifact/(title)
not return only Title of this artifact


Christian Glockner commented Mar 27 '13, 6:44 a.m. | edited Mar 27 '13, 6:45 a.m.

Hello Erwin,


Looking at the Wiki there is a note in the row for "Filter by xpath" that reads:
The ?fields= argument is tolerated but does not alter the content returned from the REST API
I think that explains why you're seeing everything returned.


Erwin Kunz commented Mar 27 '13, 9:49 a.m.

Oups.. again. Thank you


Edgar Ignacio Velazquez Mar commented Mar 27 '13, 10:17 a.m.
JAZZ DEVELOPER

 Hi Erwin,

 This filters are used when the schemas are added as REST, that is why Generic XML is suggested. It will not impact the output, but can be confusing

Accepted answer


permanent link
Christian Glockner (16613) | answered Mar 27 '13, 6:26 a.m.
Hello Erwin,

Is that just a typo in the first URL or did you really use "resourceID=" while it should be "resourceURI="?

-Christian
Technical Support Engineer
IBM Rational Client Support Europe 
Erwin Kunz selected this answer as the correct answer

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.