From be3469a429bf272bb7862052037563834a5bf764 Mon Sep 17 00:00:00 2001 From: Filipe Campos Date: Wed, 28 Jan 2026 14:28:45 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A7=20Allow=20links=20in=20needser?= =?UTF-8?q?vice=20directive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sphinx_needs/directives/needservice.py | 1 + tests/test_open_needs_service.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sphinx_needs/directives/needservice.py b/sphinx_needs/directives/needservice.py index 720fd8948..de1c46e0a 100644 --- a/sphinx_needs/directives/needservice.py +++ b/sphinx_needs/directives/needservice.py @@ -93,6 +93,7 @@ def run(self) -> Sequence[nodes.Node]: "constraints", "content", *needs_schema.iter_extra_field_names(), + *needs_schema.iter_link_field_names(), } for datum in service_data: options = {} diff --git a/tests/test_open_needs_service.py b/tests/test_open_needs_service.py index 211eff3ea..0998e4d49 100644 --- a/tests/test_open_needs_service.py +++ b/tests/test_open_needs_service.py @@ -104,6 +104,9 @@ def test_ons_service(test_app): assert "Test rocket power" in html assert "ONS_TEST_NEP_004" in html assert "NEP_003" in html + assert "links outgoing" in html + assert "ONS_TEST_NEP_001" in html + assert "ONS_TEST_NEP_002" in html assert "open" in html assert "Debug data" in html From f2897db92a0094be50a4aed813c30ce806a84748 Mon Sep 17 00:00:00 2001 From: Marco Heinemann Date: Fri, 22 May 2026 18:10:33 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9A=20Add=20changelog=20entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/changelog.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index b428bee57..3520c3927 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -11,6 +11,12 @@ Unreleased :Released: Unreleased +Improvements +............ + +- 👌 Allow link fields in :ref:`needservice` directive options, so needs + created via a custom service can declare links to other needs (:pr:`1632`) + Bug fixes .........