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

How to get the requirement URI of a specific folder

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 ?

0 votes



One answer

Permanent link
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>

0 votes

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

Question asked: Mar 18 '14, 8:16 a.m.

Question was seen: 5,859 times

Last updated: Mar 19 '14, 8:43 p.m.

Confirmation Cancel Confirm