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

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

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);

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

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.


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 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
× 10,938

Question asked: Oct 01 '15, 8:09 a.m.

Question was seen: 2,438 times

Last updated: Oct 05 '15, 1:14 a.m.

Confirmation Cancel Confirm