How to get the requirement URI of a specific folder
Aurelien Bobey (6●3●3)
| asked Mar 18 '14, 8:16 a.m.
edited Mar 19 '14, 8:43 p.m. by Geoffrey Clemm (30.1k●3●30●35)
In a project area, I have folders, with folders in them and some with folders in them.
In almost all folders I have requirements. I am able to get all the requirements URI, whith the query capability: "https://myserver:9443/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fmyserver%3A9443%2Fjts%2Fprocess%2Fproject-areas%2F_X07S0iptEeODGMSiZX4rMQ" and to navigate in the folder structure. But as there is a lot of requirement in this project area, it takes a long time to load all the requirement. To make it quicker, I wanted to load only the needed requirement. I mean that when a user open a folder, it should only load the requirement of this folder and not all the requirement of the project area. I tried to do different request, like : "https://myserver:9443/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fmyserver%3A9443%2Fjts%2Fprocess%2Fproject-areas%2F_X07S0iptEeODGMSiZX4rMQ&nav:parent=https://myserver:9443/rm/folders/_bs7fPCptEeODGMSiZX4rMQ" to find the requirement of the folder referenced as "_bs7fPCptEeODGMSiZX4rMQ", but it don't work. I also noticed that in a ressource description, I can find a node : nav:parent, with the reference to the parent folder, but in the folder description, there is nothing to get the ressources of this folder. How can I get all the requirement of a folder ? |
One answer
The problem was that I was not giving a reference for the "nav" prefix.
To make it work, I had to add: &oslc.prefix=nav=<http://jazz.net/ns/rm/navigation%23> So the good request to get the ressources of the folder referenced as "_bs7fPCptEeODGMSiZX4rMQ" is: https://myserver:9443/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fmyserver%3A9443%2Fjts%2Fprocess%2Fproject-areas%2F_X07S0iptEeODGMSiZX4rMQ&oslc.prefix=nav=<http://jazz.net/ns/rm/navigation%23>&oslc.where=nav:parent=<https://myserver:9443/rm/folders/_bs7fPCptEeODGMSiZX4rMQ> |
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.