How to query for items assigned on a particular timeline using OSLC
Hey guys, I'm currently developing a sidebar widget for Notes which will allow the user to view the "n" latest sprints and display the title/url of the underlying work items. However, I'm having a roadblock.
I access the timeline of the project by visiting this URL:
https://xxxx.xxxx.usma.ibm.com/jazz/process/project-areas/xxxx/timelines/xxxxx/iterations. After that,
I get an XML with a list of iterations. I query the <jp:url> tags and try to visit all subsequent elements with url contents on it but I couldn't obtain a list of work items.
Am I doing the correct approach for querying the associated items for a sprint? If not, what
should be the correct way to access all work items associated with a certain sprint? Thanks!
Edit: nvm, found the solution. Basically I iterate on the project timeline and extract the iteration ID.
Then I query this URL:
https://xxxxxxx.usma.ibm.com/jazz/oslc/contexts/xxxxxx/workitems?oslc_cm.query=rtc_cm:plannedFor="https://xxxxxxx.usma.ibm.com/jazz/oslc/iterations/_<iterationID>"
I access the timeline of the project by visiting this URL:
https://xxxx.xxxx.usma.ibm.com/jazz/process/project-areas/xxxx/timelines/xxxxx/iterations. After that,
I get an XML with a list of iterations. I query the <jp:url> tags and try to visit all subsequent elements with url contents on it but I couldn't obtain a list of work items.
Am I doing the correct approach for querying the associated items for a sprint? If not, what
should be the correct way to access all work items associated with a certain sprint? Thanks!
Edit: nvm, found the solution. Basically I iterate on the project timeline and extract the iteration ID.
Then I query this URL:
https://xxxxxxx.usma.ibm.com/jazz/oslc/contexts/xxxxxx/workitems?oslc_cm.query=rtc_cm:plannedFor="https://xxxxxxx.usma.ibm.com/jazz/oslc/iterations/_<iterationID>"