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

OSLC - Iteration query with project url

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>

2 votes



3 answers

Permanent link
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"

0 votes


Permanent link
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>

0 votes


Permanent link
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.

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,952

Question asked: May 22 '13, 5:36 a.m.

Question was seen: 6,287 times

Last updated: Dec 18 '13, 11:55 p.m.

Confirmation Cancel Confirm