Skip to content

Create needextract or needextend as target link #689

@twodrops

Description

@twodrops

We have a usecase where we import information from an external tool and automatically create need objects for the imported elements. Just like with needimport, the imported elements are then linked from other existing needs or extended using needextend or by adding textual contents around a needextract in different rST pages.

For example,

import-page.rst:

 .. needimport::
  :filter: type == 'tool-element'

another-page.rst:

.. needextend:: TOOL_ELEMENT_01
    :+implements: REQ_SW_01

.. needextract::
   :filter: "TOOL_ELEMENT_01" in id

By default, when the imported elements are linked in this way, the HTML navigation always points to the page where the needs are imported (which is a page with a large number of imported elements). It would be nice to have a feature where a needextract or needextend can be declared as the link target for a need and not the original (imported) need.

This helps to navigate to the need which has more details than the "raw" imported ones.

Points to consider

  • needextract or needextend could filter multiple elements. How to make sure target links are created for single elements
  • needextract could extract the same need in multiple pages. How to mark only a single needextract as target link

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions