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.
|
Accepted answer
Stephane Leroy (1.4k●1●4●9)
| 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
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.