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

How to fetch all folders and requirements

Hello. I've ran into a problem and I don't know how to fix this.
Supposing that I have some folders and in every folder there are some requirements, the question would be: how and which is the best way to fetch these folders alongside their requirements?
I've followed this tutorial, but I can get only folders with their titles and not requirements. Based on other questions, I should add some 'oslc.prefix' after the query, or? I'm confused now.

Thank you.

0 votes



2 answers

Permanent link
Sorry for bumping, but I need an answer quick.
So, my Folder Query Capability query base looks like this:

and I tried appending the following to it:

but I can't get get requirements, only folder titles.
I'm a bit confused, because if I only GET on the query base above, I get folder titles and their URLs. Should I append the oslc.prefix to these URLs or to the query base?

0 votes


Permanent link

Hi,

The query that you are using is only to fetch the folder and its structure. I mean the folder title, url and its sub folder url. The query will not directly provide the requirements within.

To fetch the requirements you need use the "Query Capability" query base URL and append it with
&oslc.prefix=nav=<http://com.ibm.rdm/navigation%23>&oslc.where=nav:parent=<folder URL>  

folder URL -> is the URL you get from the previous query.

Regards,
Ankita

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: Nov 26 '19, 8:28 a.m.

Question was seen: 1,808 times

Last updated: Jan 24 '20, 7:03 a.m.

Confirmation Cancel Confirm