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

oslc 2: query to search by plannedFor title ?

The documentation states:

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.

Change Requests owned by a user
Query Parameters
Name Value
oslc.where dcterms:contributor{foaf:name="Bill Cassavelli"}
oslc.select dcterms:contributor{*}



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

0 votes


Accepted answer

Permanent link
Note quite sure why it failed on you. It works for me if I use a filter such as oslc.where=rtc_cm:plannedFor{dcterms:title="Sprint 1"} with RTC 5.0.2. I have no luck with custom attributes though.
Sian O'Briain selected this answer as the correct answer

1 vote

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

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
× 516
× 62

Question asked: Sep 23 '15, 12:09 p.m.

Question was seen: 3,806 times

Last updated: Sep 25 '15, 8:13 a.m.

Confirmation Cancel Confirm