Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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:
https://<server>/cqweb/oslc/repo/<database>/db/HCSDM/record?rcm.type=<type>&oslc_cm.properties=id&oslc_cm.where=Keyword=<value>
	
Returns the following error:
<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#">
<message>
CRRCM9997E: At least one of the following filters must be specified: rcm.name oslc_cm.query
</message>
<statusCode>403</statusCode>
</Error>

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.

0 votes



3 answers

Permanent link
I think the problem is you are using "record" instead of "query".  You can see some examples here.

0 votes

Comments

"/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.


Permanent link
Per OSLC spec "and" operator works in this style of record filtering, but the "or" operator is not supported.

0 votes


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 515
× 233
× 201

Question asked: Oct 09 '13, 4:38 p.m.

Question was seen: 8,317 times

Last updated: Oct 09 '13, 8:54 p.m.

Confirmation Cancel Confirm