diff --git a/sphinx_needs/directives/needservice.py b/sphinx_needs/directives/needservice.py index 44e9da500..a36465af6 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..85a13c38a 100644 --- a/tests/test_open_needs_service.py +++ b/tests/test_open_needs_service.py @@ -104,6 +104,7 @@ 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 "open" in html assert "Debug data" in html