How do I fetch all requirements for a folder with OSLC?
5 answers
Try following query :
" &oslc.prefix=nav=<http://com.ibm.rdm/navigation%23>&oslc.select=*&oslc.where=nav:parent=<YOUR_FOLDER_URL> "
Where your folder URL may looks like : "https://grarrc.ibm.com:9443/rm/folders/_RHCJYN5jEeGb6IIbvOh9Dw"
NOTE: On the query does not use the beginning and ending " chars
Sorry, but that did not help.
So now I wonder if someone can tell me which is the best way to getting all the requirements in a folder using OSLC?
I got the folder name and are able to retrieve the uri to the folder.
Comments
Could you attach the query your are using?
https://server:9443/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fserver%3A9443%2Fjts%2Fprocess%2Fproject-areas%2F_xdjJsP2cEeGoOoZWLhSJmQ&oslc.prefix=nav=<http://jazz.net/ns/rm/navigation#>&oslc.where=nav:parent=https://server:9443/rm/folders/_-0W0x_5KEeGoOoZWLhSJmQ&oslc.select=*
the value of the nav prefix is fetched from the response.
What is the best way to fetch the requirements for a folder?
From query base for requirements, from query base for folders or something complete different?
Am I missing any headers in my request?
Cecilia,
Good article, but it does not solve the issue about fetching requirements for a spcific folder.
I encoded the # character in the nav ns using UTF-8 and removed the amp after &. Can you please try this:
https://server:9443/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fserver%3A9443%2Fjts%2Fprocess%2Fproject-areas%2F_xdjJsP2cEeGoOoZWLhSJmQ&oslc.prefix=nav=<http://jazz.net/ns/rm/navigation%23>&oslc.where=nav:parent=https://server:9443/rm/folders/_-0W0x_5KEeGoOoZWLhSJmQ&oslc.select=*
I tried to use both namespaces, but none of them works.
https%3A%2F%2F%5Bserwer%5D%3A9443%2Frm%2Fviews%3Foslc.query%3Dtrue%26projectURL%3Dhttps%3A%2F%2F%5Bserwer%5D%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_lSxTMu7LEeW7ncSEDSVoCA%26oslc.prefix%3Dnav%3D%3Chttp%3A%2F%2Fjazz.net%2Fns%2Frm%2Fnavigation%23%3E%26oslc.where%3Dnav%3Aparent%3D%3Chttps%3A%2F%2F%5Bserwer%5D%3A9443%2Frm%2Ffolders%2F_7oeNsfDrEeW7ncSEDSVoCA%3E