It's all about the answers!

Ask a question

Import multiple Requirements with HTML retained


Alan Schiffler (1313) | asked Apr 05 '22, 1:26 a.m.

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.


Comments
Ian Barnard commented Apr 05 '22, 5:22 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

One answer



permanent link
Ian Barnard (1.9k613) | answered Apr 05 '22, 5:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

Your answer


Register or to post your answer.