It's all about the answers!

Ask a question

Fetching requirement artifacts using Oslc

Sudipto Sarkar (63331) | asked Oct 21 '15, 10:30 a.m.

 I am trying to fetch the list of artifacts in a particular folder of a project area in DNG. I am able to get the sub folder url in oslc, but how can I query the artifacts in that sub folder.


Accepted answer

permanent link
Donald Nong (14.4k213) | answered Oct 22 '15, 6:09 a.m.
It has been asked multiple times. Simply put, use the <nav:parent> attribute.
Sudipto Sarkar selected this answer as the correct answer

One other answer

permanent link
Sudipto Sarkar (63331) | answered Oct 22 '15, 11:42 a.m.
 I am able to fetch the artifacts now from the project area, but not from a particular folder...
I tried to follow the above answers, but none of them is giving the exact solution. Just curious to know if there is  direct url from the response page..


Donald Nong commented Nov 03 '15, 7:57 p.m. | edited Nov 03 '15, 7:57 p.m.

I don't think there is a "direct" URL. The logic is, a folder does not contain the artifacts, but the artifacts belong to a folder. In technical terms, a folder does not have attributes related to the artifacts, but the artifacts have an attribute (<nav:parent>) pointing to the containing folder. So you have to do a query on the artifacts.

Sudipto Sarkar commented Nov 04 '15, 4:31 a.m.

Thanks Donanld. I am able to follow now. The query has to be derived to fetch the artifacts belonging to a particular folder.

Your answer

Register or to post your answer.