It's all about the answers!

Ask a question

How can I list the requirements within a folder in DOORS Next Generation?

Jean-Luc Johnson (8125) | asked Oct 01 '13, 1:28 p.m.
edited Oct 01 '13, 10:51 p.m. by Geoffrey Clemm (30.1k33035)
I'm using RM 4.0.3 and a REST plugin to get RDF documents from RM (I assume DOORS Next Generation).
I'm developing a java client for jazz RM  4.0.3 and I would like to build a tree structure of my project area and to access accurately only requirements (or other artifact types) in a given folder. Here is my issue.

So far I can get the list of project areas, I can retrieve the list of folders and subfolders. But I realised that the service document (i.e https://servername:9443/rm/discovery/_X07S0iptEeODGMSiZX4rMQ/services.xml) is the same for all the containers and it uses the project area ID (here it would be _X07S0iptEeODGMSiZX4rMQ). In the end I always get a flat list of the requirements.

Question: How can I use the query capability service to display only the artifact  type requirement resources in a given folder ?
Any idea or workaround is welcome.

5 answers

permanent link
Bas Bekker (1.4k4) | answered Oct 01 '13, 2:39 p.m.

Look at this link for folder support in RM: Folder Support in RRC 4.0 OSLC API
As it is the same RM server, support includes DNG 4.0.3

permanent link
Jean-Luc Johnson (8125) | answered Sep 04 '15, 5:27 a.m.
Exploring the project folder structure is relatively simple. In the service provider service.xml document, look for the folder service query capability. That is one of the Jazz specific concept. It should like :
        <dcterms:title rdf:parseType="Literal">Folder Query Capability</dcterms:title>
        <oslc:queryBase rdf:resource="" />
Copy the query base then replace with your server.

It should work.


Naveen Tyagi commented Sep 15 '15, 6:49 a.m.

Thanks Jean!! Finally i am able to get the folder list inside the project. now i have folder name with URi.

Now i want to get list of the requirements in any of these folder. can you please let me know correct URi and way whether GET or query capabilities. I have tried both way
on the URL given in this ( article but still dind't work.


permanent link
Jean-Luc Johnson (8125) | answered Oct 02 '13, 9:30 a.m.
edited Oct 24 '13, 6:30 a.m.
Hi Bas,
The link you have mentioned takes me back to this web site. An answer could be in the article at
I will investigate later on. Many thanks

permanent link
Jean-Luc Johnson (8125) | answered Oct 24 '13, 6:41 a.m.
I tried the query snippet codes at and it worked.
Here is the answer.
First get the query capability service, example:"

To query the requirements in a specific folder, append to the the query capability a query similar to the following one:

Now I'm able to filter accurately my artifacts. I hope it will help other people.

Naveen Tyagi commented Sep 03 '15, 1:44 a.m.

 Hi Jean,
how you managed to do that i need to implement same in my project.

I am able to retrieve all the requirement in a project by OSLC/Java but i need to retrieve them folder by folder. you can get my actual problem from the question i have posted yesterday. Thanking in Advance for any help.

Jean-Luc Johnson commented Sep 03 '15, 4:19 a.m. | edited Sep 03 '15, 4:20 a.m.

Hello Navenn,
For your information I was not using the lyo SDK and sample code at Instead I used the workshop material at I don't recommend any more. 
I looked at your previous post and I think that you were doing well.
At this stage you would need to add additional query parameters to match the ones I have mentioned in this post. In the end, your query should look like this:
&oslc.prefix=oslc=<http:"" ns="" core%23="">,dcterms=<http:"" dc="" terms=""/>,nav=<http:"" navigation%23="">&,dcterms:description,oslc:instanceShape&oslc.where=nav:parent=<https:"" rm="" folders="" _RHCJYN5jEeGb6IIbvOh9Dw=""
Please read the article at to find out more about how to get the list of existing folders in a project area.

Naveen Tyagi commented Sep 03 '15, 7:22 a.m.

Thanks Jean for quick response.
My question is how will i get the folders URI for first time, i didn't find any way to get the folders URI.

what it does you can fetch any requirement that contains parent folder URI with help of that parent(folder) URI you can get all the other requirements inside that folder.(i can get root Folder Uri but after firing that folder query i am not getting any requirement).

i want list of the folder and on the name/URI of the folder, i want to pull out all the requirement inside that folder.

permanent link
Naveen Tyagi (19751151) | answered Sep 15 '15, 9:04 a.m.
Hi Jean, I have been struggling quit a long time but still not able to solve this.i have pulled out all the folder with URI's in my projects.  could you please add the required parameters in the below code so that i can just the submit the query to get requirements from any folder: lets assume my folder uri i want to pull out requirements from is : . Thanking in advance.

OslcQueryParameters queryParams = new OslcQueryParameters();
                OslcQuery query = new OslcQuery(client, queryCapability, 5, queryParams);
                OslcQueryResult result = query.submit();
                System.out.println("Result Size: "  +result.getMembersUrls().length);

Your answer

Register or to post your answer.