Minimize Approval Path panel to show only active unresolved approvals and hide definitions and activity
Description
Change
-
New setting Settings > JSM > Work item panel > Show only active approvals (off by default, "New" badge).
-
When it is on, the Approval Path panel on work items in JSM spaces (issue panel, details tab and activity tab locations) shows only approvals in progress. There are no New, Approvals or Activity tabs, no Manage Approvals link, no filters, bulk actions or page size selector, and no View activity action on the approval. The panel fits its content (it does not reserve 400px of height while loading); when nothing is in progress it shows "No approvals found." with the Reload button.
-
A decided, rejected, incomplete, expired, archived or outdated approval leaves the panel on the next refresh.
-
Applies to everyone, admins included. Other spaces, the JSM customer portal, the space page and approval links from notifications are unchanged. Starts by automation, workflow and the Web API work as before. The View source approval dialog of a restarted approval still opens the source approval, even when it is finished.
Decisions
-
Several approvals in progress on one work item: all of them show.
-
Approvals waiting for a field value count as in progress and stay visible.
-
The JSM customer portal view is not affected (it is a separate view with its own settings).
Fixes included
-
Removed a duplicated, unreachable "no permission" block from the work item panel code.
Manual tester notes
-
In Settings > JSM, open the Work item panel section: it has a "New" badge and the toggle Show only active approvals is off. Turn it on and save.
-
Open a work item in a JSM space with no approval: the Approval Path panel shows "No approvals found." and the reload button, with no tabs, filters or page size selector.
-
With the setting on, a JSM work item loads without a 400px jump.
-
Start an approval on it with an automation rule (or a workflow transition): after reloading the work item, the panel shows only that approval, with no tabs and no filters.
-
Start a second approval on the same work item: both show. On a restarted approval, View source approval opens the source approval.
-
Approve it to the end: the approval disappears from the panel and "No approvals found." shows again.
-
Open a work item in a non-JSM space: the panel shows the usual tabs and all approvals.
-
Turn the toggle off: JSM work items show the full panel again.
Before release
-
Liquibase changeset AP-2247-jsm-minimal-panel adds global_settings.jsm_minimal_panel_enabled (default false).