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

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.

0 votes



2 answers

Permanent link

 OSLC Query only allows on instance of the oslc.where clause. Combine the two you have into one with an and operator.

0 votes


Permanent link

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 .

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,937
× 516
× 201

Question asked: Jan 13 '22, 8:37 a.m.

Question was seen: 1,955 times

Last updated: Jan 14 '22, 9:00 a.m.

Confirmation Cancel Confirm