How do I get project iteration using REST APIs?
Hi,
I'm using RTC SDK at: https://jazz.net/wiki/bin/view/Main/RtcSdk20 which doesn't mention how to retrieve the iteration values for specific project. Would someone tell me how to do it? Thanks a lot. Winson |
4 answers
Hi,
I'm in the same situation as you are -- I need to fetch iterations for a project. I found that iterations for all projects are published at https://localhost:9443/jazz/oslc/iterations.xml. I haven't found a way how to filter this for a project, anyways -- therefore not useful :( By observing the communication of Web UI, I found that the development lines are published via https://localhost:9443/jazz/service/com.ibm.team.process.internal.common.service.IProcessRestService/projectDevelopmentLines?uuid=_PROJECT_ID_, where project ID can be found for example in https://localhost:9443/jazz/oslc/workitems/catalog To get iterations of a development line, Web UI uses https://localhost:9443/jazz/service/com.ibm.team.process.internal.common.service.IProcessRestService/iterations?uuid=_DEVELOPMENT_LINE_ID, where _DEVELOPMENT_LINE_ID. I know this is not the best way to do this and I would really like to know how to solve this properly, but I was unsuccessful searching trough wiki. Thanks for any better solutions in advance. |
Hi,
At present, there is no REST API to get the iterations in a given timeline of a project area. Please go ahead and file an enhancement for this. Regards, Shivank Jazz development team Hi, |
Here is the defect: http://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=125797.
Thanks. Winson Hi, Hi, |
Hi Patrick,
I can't verify the fix with RTC Express - C 2.0.0.2iFix5 build. Would you confirm if 1. The fix has been ported to 2.0.0.2iFix5. 2. The query format is correct since I got 400 response returned. 3. I need to encode the query string, such as the part after "oslc_cm.query=". By Timeline: https://localhost:9443/jazz/oslc/iterations.xml?oslc_cm.query=rtc_cm%3Atimeline%3D%22_bMgQ8L8aEd-oEbzf2B7h6A%22 By Project: https://localhost:9443/jazz/oslc/iterations.xml?oslc_cm.query=rtc_cm:timeline/rtc_cm:projectArea=%22_bJLQIL8aEd-oEbzf2B7h6A%22 Thanks a lot.. Winson |
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.