It's all about the answers!

Ask a question

Multiple oslc.where statement in the query


Bartosz Chrabski (3.4k22949) | asked May 26 '13, 1:22 p.m.
 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.

Accepted answer


permanent link
Stephane Leroy (1.4k149) | answered May 27 '13, 4:59 a.m.
JAZZ DEVELOPER
edited May 27 '13, 5:01 a.m.
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

Comments
Bartosz Chrabski commented May 27 '13, 10:22 a.m.

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