Add a global permission that gives a user full Approval Path admin access without Jira admin rights

Description

Problem

In Approval Path for Jira, only users with the Jira global permission "Administer Jira" are app admins. There is no way to give someone access to the admin global view (Overview, Approvals, Activity, Definitions, Settings) without granting full Jira admin rights. Teams that manage approvals (for example, approval team leaders) cannot see all approvals or reach the app settings.

Change

  • The app adds a global permission "Approval Path - Administer app" that a Jira admin grants to users or groups in Jira settings > System > Global permissions.

  • A user with this permission gets everything a Jira admin gets in Approval Path: the admin global view with Overview, Approvals, Activity, Definitions and all Settings tabs (including API keys).

  • They also get Jira admin access on the Approval Path space page, in the work item panel and in the dashboard gadget (all approvals view).

  • Jira admins keep their current access.

Out of scope

  • Approval Path for Confluence.

Acceptance criteria

  • "Approval Path - Administer app" appears in Jira settings > System > Global permissions and can be granted to a user or group.

  • A user with this permission and without "Administer Jira" sees the admin global view and can change all Approval Path settings.

  • Such a user sees approvals from the whole site in the dashboard gadget and in Overview, the same as a Jira admin, including approvals on work items they cannot browse in Jira.

  • On the space page and in the work item panel, such a user has the same options as a Jira admin, also when space or work item level permissions are turned on.

  • A user without this permission and without "Administer Jira" has the same access as today.

  • A Jira admin without this permission has the same access as today.

Decisions

  • The permission starts with no default grants and excludes anonymous users. A Jira admin can give one person access through a group containing that person.

  • Space and work-item permission schemes apply to both kinds of administrator in the same way. Site-wide Overview and dashboard gadget access includes approvals on work items the administrator cannot browse in Jira.

Fixes included

  1. An API key owned by a delegated administrator passes the same owner checks as a Jira administrator’s key. The key’s own privileges still apply. Removing the owner’s admin grant causes subsequent owner checks to fail unless the owner has another qualifying grant.

  2. Jira administrators retain access on installations that have yet to receive the new Forge permission.

  3. Jira admins keep admin access in sandbox and dev sessions. The admin check reads the app and environment from the site's stored data instead of the invocation token; with no known environment only Jira admin (ADMINISTER) counts.

Manual tester notes

  • On QA, open Jira settings → System → Global permissions. Grant the Approval Path “Administer app” permission to a test group whose member lacks Administer Jira. Open a fresh app session as that member.

  • Open Overview, Approvals, Activity, Definitions, Settings and API keys. Change a reversible setting and restore its previous value. Create a limited test API key and exercise an operation it permits.

  • A delegated admin (not a Jira admin) still sees the admin views.

  • Compare Overview and the dashboard gadget’s all-approvals view with a Jira administrator. Include an approval on a work item the delegated administrator cannot browse.

  • Compare the space page and work-item panel for both admin roles with matching project grants. Repeat with space and work-item permissions enabled and disabled.

  • Remove the group grant, open a fresh session and verify personal navigation returns and the test API key fails its owner check. Check a Jira administrator still has access. Archive the test key.

Before release

  • Deploy the updated Jira Forge manifest and backend. Verify the permission is registered on the target installation.