Add filter options for delegator and delegatee

Description

Change

The approvals list in the global view and in the project (Jira) / space (Confluence) view has two new filters next to Originator: Delegator and Delegatee. They work like the Originator filter (pick one or more users), can be set by a link, are kept in saved filters, and stay for the browser tab session with AP-2557, and are reset by Clear filters. They also apply to the CSV export. Results only narrow what the view already shows, so a project/space view never shows approvals from outside that project/space.

An approval matches Delegator X and Delegatee Y when:

  • Y can act for X on a step that is waiting for X right now (X's user step or vote moderation, or a group step or vote of a group the delegation covers), through an active delegation from X to Y that covers the approval's project/space, or

  • Y already took a decision on X's behalf in the approval (the "action taken by delegate" information shown in the approval).

With only Delegator chosen, any delegatee counts; with only Delegatee chosen, any delegator counts.

Decisions

  • "Waiting for X right now" uses the same awaiting-approvers data as the "awaiting my decision" filters, so it follows the same delegation rules (dates, project/space scope, groups) and the same 5,000-member limit for large groups.

  • The project/space scope of a delegation is matched exactly as when deciding: a delegation limited to some projects/spaces also covers approvals with no project/space, and a delegation without a project/space list covers only those approvals.

  • On group and vote steps, X waits only while X has not decided on that step; on group steps X (the delegator) must not be excluded from the step, while an excluded Y (the delegatee) still counts (AP-2250).

  • The customer portal ignores both filters.

  • The personal view keeps its existing Delegator filter (delegations to you) and gets no Delegatee filter. The dashboard gadget filters are unchanged.

Manual tester notes

  • As a site admin, create a delegation from user A to user B (Delegate page) and start an approval with a step for A. In Approvals (global view) open Delegators, pick A: the approval is listed. Pick Delegatees B instead: it is listed. Pick Delegatees C (not a delegatee of A): it is not listed.

  • As B, decide that step on behalf of A. Remove or end the delegation. Filter Delegator A + Delegatee B again: the approval is still listed (decision taken on A's behalf).

  • Create a delegation limited to project/space P1 and an approval for A in project/space P2: filtering by A and B does not list it.

  • Group step with A as a member and a delegation from A to B: after A votes on the step, filtering by Delegator A no longer lists it. Exclude B from the group step (users from work item fields): filtering by Delegatee B still lists it. Exclude A (the delegator) instead: it is not listed.

  • Open the project/space view of P1 as its admin: the Delegator and Delegatee filters are there and only P1 approvals are listed.

  • Combine the filters with status and Originator, reload the page: the selection stays. Save the filter, clear it, apply the saved filter: the same results come back. Clear filters resets both.

  • Needs AP-2557: in Approvals, reload the same browser tab with Status, Originators, Delegators and Delegatees set: all stay; a new tab starts with the defaults.

  • Export to CSV with the filters on: the file has the same approvals.

  • The personal view (Approvals as a regular user) still shows only the Delegator filter and works as before.

  • Repeat in Confluence (global and space views).