Help menu "Documentation" links open the top of a shared docs page instead of the matching section

Description

Problem

The Help menu on Approval Path screens has a "Documentation" link to help for the current screen. Some screens have no separate documentation page, only a section on a shared page (Admin global view, Personal View, Space View, Global Settings, Start Approval Process). For these screens the link opens the top of the shared page and the user has to find the right part themselves. In Approval Path for Confluence the link on the Settings screens opens the top of the "Global View" page, while the settings are described in its middle.

Links to pages dedicated to a single topic (e.g. Conditions, Delegate, Webhooks, Slack) work correctly and are not affected by this change.

Dependency on the documentation

Some screens do not have their section in the documentation yet. The marketing team will fix the documentation in DOC-58: they will add the missing sections to the pages so they can be linked to, and hand over a list of screens with pages and anchors. Links to sections that already exist can be fixed right away. The rest are fixed after DOC-58 is done.

Steps to reproduce

  1. As a Jira admin, open Approval Path for Jira > Activity.

  2. Open the Help menu and click "Documentation".

Actual behavior

The "Admin global view" page opens, scrolled to the very top.

Expected behavior

The page scrolls to the "Activity" section. Every screen whose description is a section on a shared documentation page works the same way.

Acceptance criteria

  • In Jira and Confluence, the Overview, Approvals, Activity and Instance errors screens open the matching section of the global (admin), personal (regular user) or space view page. The page depends on the view the user is in.

  • The My overview screen opens the "My overview" section of the Personal View page.

  • Every Settings tab without its own documentation page opens its own section.

  • The tabs of the Approval Path panel on a work item / page (Approvals, Activity, Definitions, Parametrize) open their section on the "Start Approval Process" page.

  • Every screen on the list handed over in DOC-58 opens the page and section given on that list.

  • Links to pages dedicated to a single topic work as today.