Add new columns to the approvals list table
Description
Change
Two new optional columns in the approvals list (global, project/space and personal views, and the dashboard gadget): Total duration and Step wait time. Both are hidden by default and can be turned on in Customize columns (marked New), so existing tables do not change. Durations show as calendar time, for example 3d 4h. Running durations update every minute without reloading the list. The columns are not sortable and are included in the CSV export when shown.
-
Total duration: from the start of the approval (the Started column) until now for running approvals. For finished approvals it ends at the resolution date (the last step decision if the resolution date is missing).
-
Step wait time: for running approvals, how long the decision has been pending on the oldest currently active step, counted from when that step was activated (a prompt rerun no longer resets it). Empty for finished approvals.
Decisions
-
The total duration of an incomplete, archived or outdated approval ends at the earliest of the decision deadline (only for incomplete approvals), archiving and outdating; the last step decision when none of them is set. Step wait time is empty for all of them.
-
Wait time after removing an active step is counted from the previous decision, because no activation time is stored for it.
-
The external user approvals list (customer portal) has no Customize columns, so the new columns are not offered there. The work item/page panel shows approvals as cards, not a table, so it is unchanged and shows no durations.
Manual tester notes
-
Open Approvals (global view), click Customize columns: Total duration and Step wait time are at the end of the list, unchecked, with a New badge. The table looks the same as before.
-
Check both columns: running approvals show e.g. 3d 4h in both columns; approved or rejected approvals show the total duration from start to the final decision and - in Step wait time.
-
Leave the list open over a minute and see the running durations advance.
-
On an approval with a parallel group where one member already decided, Step wait time counts from when the group started, not from the member's decision.
-
Reload the page: the columns stay as you set them. Click Restore defaults: both are hidden again.
-
With both columns shown, export to CSV: the file has both columns with the same values.
-
Repeat in the project view and in a dashboard gadget (Format > Columns).
-
Repeat in Confluence (global and space views, gadget/macro table).