sphinx-needs icon indicating copy to clipboard operation
sphinx-needs copied to clipboard

needimport and links_back

Open adegroote opened this issue 3 years ago • 1 comments

It is more a question than a potential bug.

I try to import some needs using needimport. Some needs have some links_back. In the context of needimport, with a specified template, I could show the links_back displayed. In a context of a needextract, I can see the needs imported by needimport, but links_back are empty. Is it expected or is it a bug ?

Not completely related, is there a documentation of what fields are necessary to build a valid needs.json ? (I'm building one from one external / non-sphinx-needs source, and for now, it is more just test and try).

adegroote avatar May 17 '22 07:05 adegroote

I have to check the code and test how it is currently implemented.

For my understanding links_back should not get imported, as this value normally gets calculated.

This calculation should be done before needextract is handled, but I have to check this as well.

Currently there is no documentation about which fields are needed, as this also depends on the project settings. But there is one rough JSON schema check done during import. I will try to enhance the docs for this. Thanks for the hint.

danwos avatar May 17 '22 08:05 danwos