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

Fetching Iterations using Oslc

Hi,

 I am trying to get all iterations using oslc as follows:
https://localhost:9443/ccm/oslc/iterations.
But this url is giving me the iterations of all project areas. But I want to retrieve the iterations of a particular Project area. What is the url for this?

Thanks,
Sud

0 votes



One answer

Permanent link
A working example with the caveat that it's currently marked as a provisional service and may change in the next release:

In the rootservices document:
https://jazz.net/jazz/rootservices

You'll find a section like this:
-- Project areas service. This service is provisional and may change in the next release. --
<jp06:projectAreas rdf:resource="https://jazz.net/jazz/process/project-areas"/>
Use that resource to lookup the project areas.
Within the project-areas service document, locate the project area you're interested in, say "Rational Team Concert" and locate the timelines-url, in this case:
https://jazz.net/jazz/process/project-areas/_1w8aQEmJEduIY7C8B09Hyw/timelines

From here you'll be able to find the iterations for a specific timeline, such as "development":
https://jazz.net/jazz/process/project-areas/_1w8aQEmJEduIY7C8B09Hyw/timelines/_p9eEIGNoEdy7bvk2zwD5rw/iterations

And the child iterations of the RTC 6.0 iteration here:
https://jazz.net/jazz/process/project-areas/_1w8aQEmJEduIY7C8B09Hyw/timelines/_p9eEIGNoEdy7bvk2zwD5rw/iterations/_g_8A0EmGEeS8I8_tB4YpVQ/children

Shawn

1 vote

Comments

Hi Shawn,

 I tried with this use case. I am able to fetch the iterations of a particular project area. Out of these iterations, I chose one and tried to associate while creating a workitem. The fetched iteration is like:

https://localhost:9443/ccm/process/project-areas/-Cg8zv7AEeS61Oblf7UzOg/timelines/-T3Ldf7AEeS61Oblf7UzOg/iterations/-T3Ldv7AEeS61Oblf7UzOg
and trying to put it in the oslc query like:
<rtc_cm:plannedFor rdf:resource="https://localhost:9443/ccm/process/project-areas/
-Cg8zv7AEeS61Oblf7UzOg/timelines/-T3Ldf7AEeS61Oblf7UzOg/iterations/-T3Ldv7AEeS61Oblf7UzOg"/>
But I am getting 409 error while creating that workitem.

Thanks,
Sud

Hi Sud,
To update the planned for of a workitem with this iteration, you'll need to put the iteration into the expected format.

In your case, that should be:

<rtc_cm:plannedFor rdf:resource="https://localhost:9443/ccm/oslc/iterations/_-T3Ldv7AEeS61Oblf7UzOg"/>;

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

Question asked: May 14 '15, 4:43 a.m.

Question was seen: 4,016 times

Last updated: May 29 '15, 9:09 a.m.

Confirmation Cancel Confirm