It's all about the answers!

Ask a question

OSLC - Iteration query with project url


Bartosz Chrabski (2.5k11935) | asked May 22 '13, 5:36 a.m.
Hi Team,

I am trying to receive list of all iterations in project for that purpose I am using sample query with oslc.select and oslc.where.

Query:

https://myserver.pl:9443/ccm/oslc/iterationsoslc.select=dcterms:title&oslc.where=rtc_cm:projectArea="https://myserver.pl:9443/ccm/oslc/projectareas/_HeU8o6FZEeKEFa0gk6Ppqw"

The result is : 

<rdf:RDF>
 <rdf:Description rdf:nodeID="A0">
<oslc:message>
Unknown attribute id: [http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/projectArea]
</oslc:message>
<oslc:statusCode>
400
</oslc:statusCode>
<rdf:type rdf:resource="http://open-services.net/ns/core#Error" />
 </rdf:Description>
</rdf:RDF>

3 answers



permanent link
Kot T. (1.5k11219) | answered May 22 '13, 6:21 p.m.
JAZZ DEVELOPER
I am not sure how to filter project area for iterations. The sample below works for categories

https://<ccm_server>/ccm/oslc/categories.xml?oslc_cm.query=rtc_cm:projectArea="_7AhiUKXxEeK8EpcidNMvow"

permanent link
guoping chen (191013) | answered Dec 18 '13, 9:48 p.m.
edited Dec 18 '13, 9:49 p.m.
I refer the Kot Tontranakwong's answer.
retrieve the categories -->OK
But retrive the interations -->NG(error). Pls see the below URL. Which is wrong?

https://host.my.company.net:9443/ccm/oslc/iterations.xml?oslc_cm.query=rtc_cm:projectArea="_j3EowFXgEeOyQYTHpXYc7Q"

error info
<oslc_cm:error><oslc_cm:status>400</oslc_cm:status><oslc_cm:message>Unknown attribute id: rtc_cm:projectArea</oslc_cm:message></oslc_cm:error>

permanent link
Takehiko Amano (1.3k3541) | answered Dec 18 '13, 11:55 p.m.
JAZZ DEVELOPER
For the purpose of obtaining iteration for specific development line. Reporting Rest I/F may helps.

 https://clm.example.com:9443/ccm/rpt/repository/foundation?fields=foundation/iteration[developmentLine/name='RTC V4.0.6 Development']/(id|name|developmentLine/name)

This yields some thing like:

<iteration>
    <developmentLine><name>RTC V4.0.6 Development</name></developmentLine>
    <id>Sprint 2</id>
    <name>Sprint 2</name>
</iteration>


Unfortunately, iteration belongs to development line, so we have to query developmentLine using like:

https://clm.example.com:9443/ccm/rpt/repository/foundation?fields=foundation/developmentLine/(name|projectArea/name)

For the brief introduction to reportable RestAPI, refer to this web pages:
  https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI

Good feature of this reports API is that we can query by name, not uuid of objects.

Your answer


Register or to post your answer.