oslc 2: query to search by plannedFor title ?
Partial Representations
Getting partial representations is especially useful in conjunction with query results. Top-level and nested properties of the change request resources in the matching members list can be specified using the oslc.select query parameter. It is like the
SELECT
clause of a SQL statement.
Query Parameters |
|
---|
so in my case I want to use oslc.where rtc_cm:plannedFor{dcterms:title="Release1"}
but I get 404 back, only way I can search is by oslc.where rtc_cm:plannedFor="IterationURL"
Any ideas?
Thanks
p.s. sorry for the formatting I can't seem to remove the links on this
Accepted answer
Comments
Thanks Donald,
It actually started working for me even though I gave the exact same parameters. I now face the same problem with the rtc_cm:foundIn attribute. e.g.
oslc.where=rtc_cm:foundIn{dcterms:title="Release1"}
oslc.select=rtc_cmfoundIn{*}
not sure what I did to get the plannedFor field working!
also want to add I can return results by using the full link just not by using dcterms. e.g.
oslc.where=rtc_cm:foundIn="https://repo:9443/ccm/resource/itemOid/com.ibm.team.workitem.Deliverable/deliverable_uuid"
Any help much appreciated
I think it's a matter of whether it is supported rather than how to do it. If I understand correctly, not all attributes support nested properties in query capability. Support in oslc.select does not guarantee support in oslc.where. It seems that you can verify whether nested properties are supported by using the query editor in the Web GUI - if you can expand the attribute, such as "Planned For", nested properties are supported; otherwise no. Just my observation though.
Thanks Donald, I can defo expand on FoundIn, I will keep trying. Thanks