How to query work Items by planned For via oslc?
Hello,
I try to get all work Items of a specific Iteration by oslc. By running the query with
oslc.where = rtc_cm:plannedFor = (iteration ID)
I get the error message: unexpected Symbol: null
Planned For is not always present as a attribute in rdf+xml representation. =>
It is always possible, that there is a null value for planned For. Is it and if yes how is it possible to query for non mandatory attributes?
Best regards
I try to get all work Items of a specific Iteration by oslc. By running the query with
oslc.where = rtc_cm:plannedFor = (iteration ID)
I get the error message: unexpected Symbol: null
Planned For is not always present as a attribute in rdf+xml representation. =>
It is always possible, that there is a null value for planned For. Is it and if yes how is it possible to query for non mandatory attributes?
Best regards
Accepted answer
Hi, I think the problem is you have to wrap the iteration ID in double quotes. When I use:
https://server:9443/ccm/oslc/contexts/__9nOsR8XEeOwarTrFtCA6Q/workitems?oslc.where=rtc_cm:plannedFor="https://server:9443/ccm/oslc/iterations/_TdocNB8ZEeOwarTrFtCA6Q"
I get a good response. If I do it without the quotes around the iteration ID, I get your error message.
The workitems with the unassigned/missing rtc_cm:plannedFor values should not cause problems.