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

Multiple oslc.where statement in the query

 Hi Team

In my query I am trying to use multiple oslc.query statement, example :

Query

Accept: application/rdf+xml
OSLC-Core-Version: 2.0

https://myserver.pl:9443/ccm/oslc/contexts/_HeU8o6FZEeKEFa0gk6Ppqw/workitems?oslc.where=oslc_cm:closed=%22true%22,dcterms:contributor=%22https://myserver.pl:9443/jts/users/bob%22

result : 

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:oslc="http://open-services.net/ns/core#" > <rdf:Description rdf:nodeID="A0"> <oslc:message>Wczesne zakończenie</oslc:message> <---- "Early finish" <oslc:statusCode>400</oslc:statusCode> <rdf:type rdf:resource="http://open-services.net/ns/core#Error"/> </rdf:Description> </rdf:RDF>

I would be thankful for any help or additional comment. I already went through the documentation and I am not able to find any example with multiple oslc.where.

2 votes


Accepted answer

Permanent link
Hi Bartosz,

your query includes a comma whereas is should use a '&' instead:
It should work with: https://myserver.pl:9443/ccm/oslc/contexts/_HeU8o6FZEeKEFa0gk6Ppqw/workitems?oslc.where=oslc_cm:closed=%22true%22&dcterms:contributor=%22https://myserver.pl:9443/jts/users/bob%22

Regards,
Stéphane

Bartosz Chrabski selected this answer as the correct answer

0 votes

Comments

Hi Stephene,


I solved the problem by adding 'and' between conditions and encoding everyhing by UTF-8. Problem solved :). Thanks a lot

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,951

Question asked: May 26 '13, 1:22 p.m.

Question was seen: 5,151 times

Last updated: May 27 '13, 10:22 a.m.

Confirmation Cancel Confirm