Query Workitems by State and Type in OSLC 2.0
Hello,
I am having problems with a combined query. The weird thing is, that the two oslc.wheres work separately but as soon as I put them together in one URL they don't.
When running this query I get only workitems in closed state, however the second part with rtc_cm:type is ignored, so I get lots of different workitem types, not only Tasks.
I am using OSLC 2.0 and format application/rdf+xml.
2 answers
In addition to Jim's response, the query parameter values should be URL encoded. For example, for a query expression
rtc_cm:state="{closed}" and rtc_cm:type="com.ibm.team.workitem.workItemType.task"
the request should include
?oslc.where=rtc_cm%3Astate%3D%22%7Bclosed%7D%22%20and%20rtc_cm%3Atype%3D%22com.ibm.team.workitem.workItemType.task%22
.