It's all about the answers!

Ask a question

DNG 6.0 : Creating requirement inside a folder in DNG using OSLC.


Naveen Tyagi (19778152) | asked Oct 01 '15, 8:09 a.m.
I am able to create requirement using OSLC but it is getting created in Root Folder of the project. how can i create requirement in any of the folder i want if i have folder URI.
I am using createResource method for creating requirement.

client.createResource(requirementFactory, requirement, OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_RDF_XML);

Accepted answer


permanent link
Donald Nong (14.5k614) | answered Oct 02 '15, 2:02 a.m.
edited Oct 02 '15, 2:03 a.m.
Add the <nav:parent> tag (point to the desired folder) in the payload during the requirement creation.
Naveen Tyagi selected this answer as the correct answer

Comments
Naveen Tyagi commented Oct 02 '15, 1:49 p.m.

Hi Donald,
Could you please tell me in little detail how can i add <nav:parent> tag and where. In order to make this happen.



Naveen Tyagi commented Oct 05 '15, 1:14 a.m.

Hi Donald,
nav:parent was already there but i was passing parent folder url as string instead URI object. Finally able to do that. Thanks.

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.