Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR : list2need : having the ability to set tags that will be attached to all items in the list #1146

Open
christopheseyler opened this issue Mar 16, 2024 · 2 comments

Comments

@christopheseyler
Copy link

christopheseyler commented Mar 16, 2024

For example, I need to write down all requirements for a specific component. To easily identify the req associated to the component, I would like to tag them. So, it would be easier to write something like that

.. list2need::
  :types: req
  :tags: MyComponent
     
   * (REQ-01) Description of REQ1
   * (REQ-02) Description of REQ2
   * (REQ-03) Description of REQ3

Where all the 3 requirements would have the MyComponent tag

@danwos
Copy link
Member

danwos commented Mar 19, 2024

The idea is good.

As a not-so-nice workaround, you could use needextend to set the tag later.

Untested example:

My Needs
--------

.. list2need::
  :types: req
  :tags: MyComponent
     
   * (REQ-01) Description of REQ1
   * (REQ-02) Description of REQ2
   * (REQ-03) Description of REQ3

.. needextend:: section_name == "My needs"
   :tags: MyComponent

@christopheseyler
Copy link
Author

christopheseyler commented Mar 19, 2024

I've tried something like that but for now, ... the needextend does not support filter string, only single id (the bug is already reported #745)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants