It's all about the answers!

Ask a question

DOORS NG CSV Import Section Numbering is Wonky

Carson Holmes (11113541) | asked Jul 15 '22, 11:59 a.m.

 I've recently been playing with the import into DNG from a CSV file.  I've gotten it to work well.  My only issue is the section numbers are wonky.  There is an extra '0-' in every ordinal.  I have the parentBinding column set correctly, not sure why this is happening.  Anyone know?


Accepted answer

permanent link
Davyd Norris (2.0k117) | answered Jul 17 '22, 7:59 p.m.
edited Jul 17 '22, 8:02 p.m.
Section numbering in DNG always shows the heading level first. In your case, you don't have a top level heading so your heading level is 0.

Two things you can do:
 - select the items and use the menu beside one of the requirement artefacts to change their formatting to be a heading
 - try the import again and add the isHeading column with anything that should be an actual heading set to TRUE

Note that there is a difference between creating an artefact as a "Heading" artefact type and setting the formatting of an artefact inside a module to be displayed as a heading. If you set your default Heading element for a module to be a Heading artefact when you define it in the Project Properties then DNG will set their format to heading style within the module but you can override this using the menus in a module
Carson Holmes selected this answer as the correct answer

Carson Holmes commented Sep 28 '22, 6:17 p.m.

Thanks Davyd.  I finally got back to this.  There was a bug in the script I wrote to convert Classic DOORS csv export into DNG cvs for import and it wasn't setting the isHeading column properly.  That did the trick!  Thanks again!

One other answer

permanent link
Daniel Moul (4.9k1118) | answered Jul 15 '22, 12:29 p.m.
edited Jul 15 '22, 12:30 p.m.

 If you haven't already, I suggest doing this:

1. Create a module with sample headings to whatever depth you want to test
2. Export as CSV
3A. Compare to your existing test CSV. Are there any differences?
3B. Import the file created in (2). Are there any differences to the module created in (1)?

If the answer to 3B is "yes" then there is probably a bug here.

Your answer

Register or to post your answer.