It's all about the answers!

Ask a question

Fetching requirement artifacts using Oslc


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

 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.

Thanks,
Sud

Accepted answer


permanent link
Donald Nong (14.5k414) | answered Oct 22 '15, 6:09 a.m.
It has been asked multiple times. Simply put, use the <nav:parent> attribute.
https://jazz.net/forum/questions/129196/how-can-i-list-the-requirements-within-a-folder-in-doors-next-generation
https://jazz.net/forum/questions/205880/dng-60-retrieving-requirements-from-a-folder-in-dng-using-oslc
https://jazz.net/forum/questions/206804/dng-60-how-to-fetch-requirements-from-a-folder-using-oslc
Sudipto Sarkar selected this answer as the correct answer

One other answer



permanent link
Sudipto Sarkar (631243) | 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..

Sud

Comments
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.


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.