Import multiple Requirements with HTML retained
We need to import multiple Requirements into DOORs NG and retain the HTML inside the PrimaryText field.
The CSV import worked well in retaining relationships and heirachy, but unfortunately it strips out HTML and reads it as plain text.
The OSLC requirementFactory can retain HTML on a single requirement creation, but we lose the ability to easily add it to a Module and keep the parent/child structure.
Is there a way we can achieve this? Is there an API we can use to create multiple requirements at a time?
So far our best solution is to import a CSV, then loop over each Requirement and check if it has HTML code, then if TRUE it creates a requirementFactory request to update that Requirement with the OSLC primaryText.
One answer
The OSLC APIs allow you to create requirements (yes, using XHTML if needed), but OSLC doesn't know about modules - for that there's the Module API seeĀ https://jazz.net/wiki/bin/view/Main/DNGModuleApiOverview
To use the Module API the core artifact has to already exist, the module API lets you inspect/construct/update the hierarchy.
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 05 '22, 5:22 a.m.Have you tried creating a Microsoft Word document with the desired hierarchy of headings/content and importing this to a module - retains formatting for the Primary Text.