Lists lose their filters after opening a sub-view and going back
Description
Problem
-
In the Approval Path panel, New tab: filter the definitions (for example by Definition), click View definition, then Back. The list comes back with the default filters. The same round trip also resets the filters of the Approvals and Activity tabs.
-
Most lists keep their filters, search, sort and page only while the page is shown. Any sub-view that replaces the page (definition preview, Parametrize, definition view/edit/create, API key form, View activity) or leaving through the sidebar starts them again from the defaults:
-
panel New, Approvals and Activity tabs (Jira work item, Confluence page, JSM portal);
-
Approvals pages (global, My approvals, space), Activity, Definitions, API keys, Decision confirmation logs, Instance errors, Webhook call history, Slack activity.
-
-
Only Conditions and Delegate keep their filters, and only until you leave their section.
Change
-
Every list keeps its filters, search, sort, page and page size for the browser tab session (session storage): across previews, edit forms, Back, the sidebar and a reload of the same tab. A new browser tab starts with the defaults.
-
Panel filters are kept per work item / page.
-
Drill-downs and links that open a list with their own filters (Overview charts and tiles, gadget links, the confirmation log, View activity of one approval) show those filters. View activity of one approval starts clean and leaves the Activity filters you set before untouched.
-
Starting an approval from the New tab or Parametrize opens Approvals with your filters kept, on page 1, newest first. If the new approval does not match your filters, a message says so and offers Clear filters, which shows it.
-
A kept page number past the last page shows the last page.
-
Conditions and Delegate use the same mechanism and no longer clear their filters when you leave the section.
Decisions
-
Filters last for the browser tab session, not permanently.
-
Leaving a list through the sidebar keeps its filters.
-
Panel filters are per work item / page. The email deep-link approval dialog, the JSM portal and the Confluence byline / content action each keep their own.
-
After starting an approval the filters are kept; the list goes to page 1 newest first, and a hidden approval gets a message with Clear filters.
-
Not kept: the Confluence macro list, gadget tables, dialogs, API key history/usage tabs and Overview (its filters stay in the page address).
Fixes included
-
The New tab filter changes used the wrong params type.
-
Conditions lists changed their shared defaults (space page size leaked into other views).
-
Delegate configuration history could show another delegate's saved filters.
-
Opening some views cleared the Conditions and Delegate filters.
-
Deleting the last item on the last page left an empty page; the list now shows the last page, without flashing "no results" first.
-
Delegate usage: Remove Filter now opens the all-versions view, and View usage on a version shows that version again.
-
My approvals: Clear filters always brings back the default "awaiting my decision" filter.
Manual tester notes
-
Jira work item, Approval Path panel, New tab: set the Definition filter, click View definition, then Back: the filter is still set and the same definitions are listed. The same after Parametrize, Cancel.
-
Approvals tab: set Status and Priority filters, go to New, open a definition preview, Back, then Approvals: the filters are still set.
-
Approvals tab: set Status to Rejected. On New, start an approval: Approvals opens with your filters and a message that the approval is hidden by your filters. The message stays until you close it or click Clear filters. Click Clear filters: the new approval is shown first and highlighted. Repeat with Start through Parametrize.
-
Approvals tab with no filters: start an approval: it is first on page 1.
-
Activity tab: set a date filter. On Approvals click View activity of one approval: only that approval's activity, without your date filter. Remove the approval chip: your date filter is back.
-
Global Approvals: set filters, sort by a column, go to page 2, open Definitions from the sidebar, then Approvals again: as you left it. Reload the browser tab: the same. Open the app in a new browser tab: defaults.
-
Definitions: filter by space, open a definition, Cancel: still filtered. API keys: filter, open a key, Back: still filtered. Conditions: filter, open Approvals, come back: still filtered.
-
My approvals as a non-admin: remove the default step filter, open Activity, then My approvals: it is not added back. Click Clear filters: the default filter is back.
-
Delegations, a delegation's history, View usage of a version, Remove Filter: all versions are listed. Go back to the history and open View usage of that version again: only that version.
-
Open two work items one after another, each with different panel filters: each keeps its own.
-
Repeat the New tab check in Confluence on a page and on a JSM portal request.