It's all about the answers!

Ask a question

Clearquest OSLC Query Syntax / Usage

Rich Steenwyk (622) | asked Oct 09 '13, 4:38 p.m.
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:
<Error xmlns="" xmlns:cq="" xmlns:rdf="">
CRRCM9997E: At least one of the following filters must be specified: oslc_cm.query

My questions are:
1) Is this a known limitation of the technology (haven't found documentation supporting either yes or no) or is this a "self-imposed" limitation of this particular Clearquest deployment (the management of which I have no control over
2) Is it possible to use oslc.query to match on multiple terms?  Standard operators like "or" and "and" do not seem to be honored.

3 answers

permanent link
Donald Nong (14.5k414) | answered Oct 09 '13, 8:54 p.m.
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.

permanent link
Rich Steenwyk (622) | answered Oct 09 '13, 6:10 p.m.
Per OSLC spec "and" operator works in this style of record filtering, but the "or" operator is not supported.

permanent link
Matthew Alexander (18126) | answered Oct 09 '13, 4:52 p.m.
I think the problem is you are using "record" instead of "query".  You can see some examples here.

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

Register or to post your answer.