Clearquest 7.1.2.1 OSLC Query Syntax / Usage
Trying to query against Clearquest via OSLC and running into limitations that I can't seem to find documentation on.
HTTP GET query used:
Returns the following error:https://<server>/cqweb/oslc/repo/<database>/db/HCSDM/record?rcm.type=<type>&oslc_cm.properties=id&oslc_cm.where=Keyword=<value> <Error xmlns="http://open-services.net/xmlns/cm/1.0/" xmlns:cq="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
3 answers
Which OSLC version are you trying to use? It seems that you mix V1 and V2 together - the URL is in V1 format but oslc_cm.where is a V2 operator. You can set the parameter OSLC-Core-Version to either 1.0 or 2.0 in the HTTP Request Header to specify which version you are using. Once it is determined, you can check either specification to complete the OSLC request.
V1: https://jazz.net/wiki/bin/view/Main/RcmRestCmApi V2: https://jazz.net/wiki/bin/view/Main/CqOslcV2 |
Per OSLC spec "and" operator works in this style of record filtering, but the "or" operator is not supported.
|
I think the problem is you are using "record" instead of "query". You can see some examples here.
Comments
Rich Steenwyk
commented Oct 09 '13, 6:02 p.m.
"/query/" appears to be solely for executing a pre-defined query. To clarify my original question, I desire to perform so-called "on-the-fly" querying -- filtering all records by certain criteria. |
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.