The delegate info might be incorrectly surfaced in Details View
Description
When seeing an approval in Details View on Global level, the information “You have active delegates for this step” is surfaced for user even if existing delegation does not include the space that this approval takes place in.
Notes/observations:
-
This issue occurs on Global level only. Space and Reference levels are not affected.
-
This issue occurs in both Jira and Confluence versions.
Steps to reproduce:
-
Create a delegation
-
you as a Delegator
-
anyone as Delegatee(s)
-
make it specific to space A
-
-
Start an approval that requires your decision on any other space than space A
-
Proceed to Global View → Approvals → Details View and choose the aforementioned approval
-
Notice that the delegation info is surfaced even though it is not relevant for this approval
Expected result: The delegation info is surfaced only if it is relevant for an approval.
Change
-
On the global level (Approvals list and Details view, personal approvals gadget) the delegations of the user are now limited to the approval's space (Confluence) / project (Jira), the same way as on the space/project and reference levels. "You have active delegates for this step" shows only when a delegation applies to that approval.
Fixes included
-
On the global level the user was also offered to decide on behalf of a delegator whose delegation is limited to another space/project; now only delegations that apply to the approval are offered.
Manual tester notes
-
Create a delegation with you as the delegator, limited to space/project A. Start an approval in space/project B that needs your decision. Global view, Approvals, Details view of that approval: no "You have active delegates for this step". Same approval started in A: the info shows.
-
Create a delegation where someone else delegates to you, limited to A. Start an approval in B with that person as approver. Global view, Approvals: you cannot decide on their behalf there; in an approval in A you can.
-
Delegation without a space/project limit: the info shows for approvals in every space/project.