Approvals list export to PDF (with optional step details)

Description

Goal

Export the approvals list to PDF, either as a table in the data scope of the CSV export, or with the step details of each approval, to produce a complete, auditable record (who, when, which decision) for many approvals at once. Complements the existing CSV export.

Includes the scope of AP-2370 (merged here as the "with step details" variant).

Where

  • The Approvals page (global, space and personal views, Jira and Confluence) and the approvals table of the Jira dashboard gadget (when its export is enabled): every approvals list that has the CSV export.

  • The approvals of one work item / page are exported from the work item / page itself: AP-427.

Change

  • The Export icon of these lists opens a menu: CSV (as before), PDF and PDF with step details (both with the New badge). A click downloads the file; while a PDF is built a progress flag shows, then a success flag. No dialog.

  • PDF: A4 landscape table with the list's visible columns in their order, in the same data scope, filters and sorting as the CSV export. Status shows as the coloured badges of the work item / page PDF, with renamed decision names. Dates show the time under the date. In both PDFs, Jira date and date-time field columns show the date (and time) in the user's time zone like the built-in date columns, with the time under the date in the table; the CSV keeps its format. The header row repeats on every page; with more than 10 columns the table font gets smaller; a cell longer than 500 characters is cut with "…". The plain PDF has no steps, so the steps layout setting does not change it.

  • PDF with step details: A4 portrait. Each approval: its name with status badges, a grid of the visible columns, then its steps as in the work item / page PDF (AP-427): by default as they look in the app, as a table when "Show steps as a table" is on in Settings > General > Exports. A line separates approvals; the name and the grid stay together with the first steps on one page. Step dates show the time, as in the AP-427 PDF.

  • Empty values left out: in the table PDF a column with no value in any exported approval is left out, so the other columns get more room. In the PDF with step details, fields without a value for that approval are left out (for example Decision deadline and Validity expiration). A dash, as in Current step(s) of a finished approval, counts as a value. The CSV export keeps every column.

  • Links: the approval name opens the work item / page with that approval in the Approval Path window, the same link as in notification emails; the work item / page (and the work item key column in Jira) opens the item; the project / space opens the project / space. In the Jira app the texts say "work item" and "project", in the Confluence app "page" and "space".

  • Avatars (Jira): the Originator column and the Jira user field columns (single and multi user) show the person's avatar left of the name, one person per line. Only fields whose type is user or multi-user get avatars; other fields stay text. Current step(s), email approvers and groups show names only, as in the list. At most 100 different avatars per PDF; Confluence lists show names only.

  • Layout: names wrap only between words, as the column widths are sized to the content; column heading words are not broken (with about 19 or more columns a long heading can still break); Progress reads "Step: 0 / 3" as in the app, with no percentage; in the plain PDF a date never breaks inside ("Nov 18, 2026" stays on one line, with the time under it) and "Step: 1 / 2" never breaks, and when many columns are shown the text columns (name, work item, current step, space) give way; work item keys never break inside ("TEST-100" stays whole) and the built-in field labels of the step details fit on one line; the header row of the table repeats on every page and rows do not split; in the PDF with step details a title and the field grid stay with the first steps.

  • Decision buttons help text (Settings): Jira says "The Approval Status field, JQL, the Web API, webhooks and the Activity export keep the standard names."; Confluence says "The Web API, webhooks and the Activity export keep the standard names."

  • Header: the AP-427 document header with the generation date and time zone. Title "Approvals", "Approvals in <space>" in a space view, "Your approvals" for the personal view (a user's own approvals only). A Filters block lists each applied filter on its own line in the filter bar's wording with names (status, definition, space, JQL / page search, originator, delegator, date ranges, step filters, drilldown chips), or "Filters: none". Then the number of approvals.

  • Caps: PDF 1,000 approvals, PDF with step details 200 (measured: 1,000 rows render in about 4 s, 200 approvals with steps in about 2 s). A longer list gets the first approvals in list order, a highlighted note in the PDF and the same text in the success flag ("The PDF has the first 1,000 of 3,412 approvals.").

  • Engine and limits: every PDF goes through the AP-427 PdfRenderer (size limit ap.pdf.max-size-mb). At most 3 PDF exports run at once per instance, now shared by the work item / page export and the list exports. The steps come from the same database query as the list (no extra query, no Atlassian request per approval); fields of related work item / page columns load in the same batches as the CSV export. A list PDF with a visible Jira field column makes one extra Jira call: the field list, read once per user and cached for 5 minutes, shared with the filter header; Confluence and CSV make none. Names in the filter header come from caches and the exported data; space names are looked up as the user, so a space the user cannot see stays an id; a group or work item field named only by id costs one request, made only when such a step filter is applied. An export request with more than 50 columns, or with a column without a key, is refused (400), for the CSV and both PDFs.

Decisions

  • Export menu on the existing icon (CSV / PDF / PDF with step details), no dialog.

  • Caps 1,000 / 200 with a note in the PDF and in the flag; CSV keeps 20,000.

  • Plain PDF in landscape, PDF with step details in portrait like the AP-427 document.

  • The steps in the PDF with step details look as in the app by default and are a table when the global setting "Show steps as a table" is on, as in the AP-427 PDF (AP-427 covers AP-2550); there is no per-export switch, because the export has no dialog.

  • Avatars only for user and multi-user fields, by the field type Jira reports; every other field stays text.

  • Filters as one line per applied filter; "Space" in both products, as the filter bar says.

  • PDF dates use the AP-427 format ("Nov 17, 2026, 14:05" in the user's time zone), not the CSV's locale format.

  • The PDFs leave out what has no value; the CSV keeps every column.

  • Kept from the epic: openhtmltopdf; "Upcoming" / "Not started"; signing in AP-2551.

Fixes included

  1. The CSV Status column prints the renamed decision names (for example "Accepted" instead of "Approved"), as the list does.

  2. The CSV export of the personal Approvals view (users without access to the whole list) stopped at 100 rows without saying so. It now exports up to 20,000 rows, like the other views.

  3. The CSV export of a gadget with a space scope fills the Space column and is named <space>-approvals.csv.

  4. The Export, Customize columns and Widgets buttons hide their tooltip while their menu or popup is open, so it no longer covers the menu.

Manual tester notes

  • Jira, Approvals page: Export icon, PDF. A landscape PDF downloads with the visible columns in the list order, the Filters lines and the number of approvals. Hide a column and move another, export again: the PDF follows.

  • Set several filters (Status, Space, Originator, a step filter with a user and one with a group, a Started date range), export PDF: each filter is one header line with names, not ids.

  • Export "PDF with step details": a portrait PDF; each approval shows its fields and its steps as in the app, separated by a line. Steps not reached yet read "Upcoming" for approvals in progress and "Not started" for finished ones.

  • Settings > General > Exports: turn on "Show steps as a table" and export "PDF with step details" again: the steps are tables. The plain "PDF" looks the same with the setting on and off.

  • Jira Approvals page with the Originator column and a single user and a multi user field column visible: export PDF and PDF with step details. Originator and the user fields show the avatar left of the name, one person per line; a text field, Current step(s) and an email approver show names only.

  • Jira Approvals page with a date field column (for example Due date) and a date-time field column (for example a custom date-time field) visible: export PDF and PDF with step details; both show formatted dates in your time zone, not text like 2026-11-17T10:00:00.000+0100.

  • A list long enough for several pages: the header row repeats on every page, no row splits across pages, names wrap only between words, Progress reads "Step: 0 / 3" (no percentage), with 14 or more columns visible dates and Step: x / y stay on one line, and in the PDF with step details a title and its field grid stay with the first steps.

  • Column headings: no heading word is broken in the middle (with about 19 or more columns a long heading can still break).

  • With more than 200 approvals in the list, "PDF with step details": the success flag and a yellow note in the PDF say "first 200 of N". With more than 1,000, the same for "PDF".

  • Space view of the Approvals page: the PDF title reads "Approvals in <space name>" and the file name starts with the space name.

  • As a user without Approval Path admin rights (personal view): the PDF title reads "Your approvals". A CSV export of more than 100 approvals now contains all of them.

  • Jira dashboard: an Approval Path gadget of type Table with "Enable export" on offers the same three options; the PDF eyebrow reads "Dashboard gadget". Work item keys in its PDF are whole.

  • Confluence: the same checks on the Approvals page (Page and Version columns); the PDFs show names without avatars.

  • Rename the decisions (Settings, decision buttons): the CSV Status column and the PDF badges use the new names. The help text under the buttons names the Approval Status field, JQL, the Web API, webhooks and the Activity export in Jira, and only the Web API, webhooks and the Activity export in Confluence.

  • Export an approvals list where no approval has a decision deadline: the PDF has no Decision deadline column. Give one approval a deadline and export again: the column is there. In the PDF with step details, an approval without a deadline shows no Decision deadline field. The CSV export keeps the column in both cases.

  • Click an approval name, a work item / page and a project / space in the PDF: each opens the right place, the approval name with the approval in the Approval Path window. In the plain PDF the work item key column opens the work item (Jira).

  • Step dates in the PDF with step details show the time. Work item keys such as TEST-100 stay on one line, and the field labels of the step details do not wrap.

  • Hover the Export, Customize columns and Widgets buttons: the tooltip shows. Open the menu or popup of each: the tooltip is gone and does not cover the menu.

Before release

  • The personal-view CSV export can now return up to 20,000 rows instead of 100: after the release, watch the duration of personal-view exports on the largest sites in the backend logs.