Creating multiple artefacts in doors 7.0.2 API/OSLC
Hi All,
Currently trying to import multiple artefacts/requirements with a single query, but can't seem to find if this is possible or not.
The below works with 1 Requirement but fails if I try to add another requirement oslc_rm:Requirement rdf:about="">
I'd prefer not to loop through to create them as I could potentially have hundreds of requirements needing creation at once.
Thanks!
Post -> {{doors_uri}}/rm/requirementFactory?projectURL={{doors_uri}}/rm/process/project-areas/{{project_id}}
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:oslc_rm="http://open-services.net/ns/rm#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:rm_property="{{doors_uri}}/rm/types/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:nav="http://jazz.net/ns/rm/navigation#"
xmlns:rt="{{doors_uri}}/rm/types/"
xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/"
xmlns:jazz_rm="http://jazz.net/ns/rm#"
>
<oslc_rm:Requirement rdf:about="">
<oslc:instanceShape rdf:resource="{{doors_uri}}/rm/types/{{requirement_type_id}}"/>
<nav:parent rdf:resource="{{doors_uri}}/rm/folders/{{root_folder_id}}"/>
<dc:title>OSLC-001</dc:title>
<dc:description>Created with Postman</dc:description>
<jazz_rm:primaryText rdf:parseType="Literal">
<h2>First Requirement</h2>
</div>
</jazz_rm:primaryText>
</oslc_rm:Requirement>
</rdf:RDF>