Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Engineering as Code (EAC) documentation
Light Logo Dark Logo

Knowledge

  • Tutorial
  • How To Guides
    • Writing Requirements
    • Tracing Source Code
    • Mermaid Integration
    • Draw.io Integration
    • Architecture Diagrams
    • Architecture Documentation with arc42
    • Jira and other Links
    • How to integrate External Needs
    • GitHub Actions Integration
    • Test Management and Traceability
      • Test Requirements
  • Explanation
  • Reference
  • FAQ & BEST PRACTICES

Community

  • Contribute
Back to top
View this page
Edit this page

Jira and other Links¶

Links¶

Links to Jira objects are set directly in the Sphinx-Needs objects by using string-links.

See the needs below.

Additonally, a string-links setting needs to be added to the ubproject.toml file.

# ubproject.toml

[needs.string_links.jira_link]
# Links to the related jira issue
link_name = "JIRA ADAS #{{value}}"
link_url = "https://useblocks.atlassian.net/browse/ADAS-{{value}}"
options = ["jira"]
regex = "^(?P<value>\\w+)$"

… or to the conf.py file:

# conf.py
needs_string_links = {
    'custom_name': {
        'regex': "...",
        'link_url' : "...",
        'link_name': '...'
        'options': ['status', '...']
    }
}
# Examples
needs_string_links = {
    # Adds link to the Sphinx-Needs configuration page
    'config_link': {
        'regex': r'^(?P<value>\w+)$',
        'link_url': 'https://sphinx-needs.readthedocs.io/en/latest/configuration.html#{{value | replace("_", "-")}}',
        'link_name': 'Sphinx-Needs docs for {{value | replace("_", "-") }}',
        'options': ['config']
    },
    # Links to the related github issue
    'github_link': {
        'regex': r'^(?P<value>\w+)$',
        'link_url': 'https://github.com/useblocks/sphinx-needs/issues/{{value}}',
        'link_name': 'GitHub #{{value}}',
        'options': ['github']
    }
}
Need: Lane Keeping Assistance NEED_001
status: open
jira: 1
links incoming: REQ_001

The system shall detect lane markings and provide corrective steering input to keep the vehicle within the lane.

Requirement: Lane Detection Algorithm REQ_001
status: open
jira: 3
links outgoing: NEED_001
Next
How to integrate External Needs
Previous
Architecture Documentation with arc42
Copyright © 2025, team useblocks
Made with Sphinx and @pradyunsg's Furo
On this page
  • Jira and other Links
    • Links