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

DNG OSLC API to get all artifacts in a folder

Is there any way to get all artifacts within a folder named "XYZ" in DOORS Next? Can we use folder name (instead of folder URI) in oslc.where? 
My goal is to get all artifacts from folder named "XYZ".

1

0 votes



One answer

Permanent link

Using OSLC Query for requirements you can get all core artifacts in a folder using e.g. oslc.where=rm_nav:parent=<FOLDERURI> - note the < and > must be there as per the OSLC Query oslc.where syntax, and the query parameter value after the first = url-encoded as per standard http). You'll also need to specify the rm_nav prefix in the oslc.prefix value.



The oslc.where parameter is: oslc.where=rm_nav%3Aparent%3D%3Chttps%3A//jazz.ibm.com%3A9443/rm/folders/FR_WfhiPnaKEfCeB7Wej8YFgg%3E
which url-decoded is:  oslc.where=rm_nav:parent=<https://jazz.ibm.com:9443/rm/folders/FR_WfhiPnaKEfCeB7Wej8YFgg>

There's an OSLC Query Capability for folders which you can use to find the URI of a folder.  Don't give it an oslc.where or oslc.select. The folder query capability first gives you (using the QueryBase url) the subfolders contained in the root folder, using the nav:subfolders  URLS in these results you have to iterate through+into these with further queries checking for the folder name you want.

HTH
Ian

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
× 11,047

Question asked: 2 days ago

Question was seen: 80 times

Last updated: 2 days ago

Confirmation Cancel Confirm