PDF step: automatic export of the approval state (email / attachment)
Description
Goal
A new automated step type "PDF": when an approval reaches it, a PDF of the approval is created and delivered by email and/or as an attachment of the work item / page, and the approval goes on.
Builds on AP-427 (PDF generation, layout, size limit) and reuses the Notify step's recipient editor (AP-2423).
Change
-
New step type "PDF" in the definition editor, in Jira and Confluence: last in the step chooser with the "New" badge, available in the approval steps and in the approved / rejected / expired sections. Several PDF steps per definition are allowed.
-
Step options: Name; "Include details", off for a new step, with the same field list as the manual export (AP-427): the basic fields checked, fields can be unchecked and dragged into another order, and in Jira any other work item field, custom fields included, can be added and removed, up to 30; "Include description" / "Include page content", on for a new step; "Send by email" with Recipients, "Attach to the work item" / "Attach to the page", and "Reject the approval if the PDF can't be delivered" (approval steps only), plus the usual conditions.
-
The PDF has the same layout as the manual export (AP-427) for the approval that ran the step: header, the approval with its status, version, definition and steps, the steps called after approval / rejection / validity expiration (in both layouts), the details chosen in the step in their order, and the description / page content when included. Dates in the approval's time zone. Boxes of steps that ran are titled as in the manual export: "Steps called after the approval ended as "Approved"" (or "Rejected", with the renamed decision label) and "Steps called after validity expiration"; "After approval", "After rejection" and "After validity expiration" remain only for sections not reached yet.
-
Dates, times, version numbers and the facts (Version, Step x / y, Decision deadline) stay on one line in every PDF.
-
The steps look as in the app by default and are a table when "Show steps as a table" is on in Settings > General > Exports. The PDF step always follows that global setting and has no setting of its own; the setting's description ends with "PDF steps follow this setting too."
-
In Jira, approvers, group and vote members, moderators and delegates show their avatar next to their name, also in the steps called after approval, rejection and validity expiration.
-
In the PDF a PDF step creates, that step shows as Delivered with the time the PDF was created, wherever it is listed and in both layouts. Other PDF steps show their real state, for example In progress while they run, never with the approval's decision deadline as "Due …"; a PDF step that failed shows Failed with a yellow warning mark.
-
A PDF step counts itself in the progress of the PDF it creates, also when it completes a parallel group (the group then shows as passed with the remaining members skipped). PDF steps in the outcome sections keep the main path count.
-
In exports and in the step's PDF, a delivered PDF step shows where the PDF went, as the app does: "Attached <file name>" and "Emailed to N recipients" under the step. The step creating the PDF shows only Delivered.
-
The step runs in the background: it shows "Creating PDF…" until the PDF is delivered, then "Attached <file name>" and "Emailed to N recipients"; "View details" of the steps after the approval updates on its own while a PDF step there runs, and shows the finished PDF even when it was opened just before the PDF finished. The file is named
<approval>-v<version>-<status>-<yyyyMMdd-HHmm>.pdf(statusExpiredonce the validity expired); when the approval has more than one PDF step, the name ends with the step's number among them, for example…-1405-2.pdf, so no PDF replaces another. -
Email: the PDF is attached and the recipients don't see each other. With the app's built-in email each recipient gets their own copy. A site with its own email server (SMTP, Gmail, Outlook) and its own sender address sends them in BCC, addressed to that sender address; without a sender address, each recipient gets their own copy too. Recipients use the Notify step's editor, with three new recipient types shared by both steps: "All approvers" (the people of the user, group, vote and email steps that decide, also steps not reached yet, including approvers added by email address and, in Jira, the approvers a step not reached yet reads from a work item field and the people a user or group step not reached yet reads from the Approval Path table in the Description; a user field step still waiting for its field adds nobody; not notification-only steps; it also includes the out-of-office delegates who decided in place of an approver), "Work item watchers" (Jira) and "Page creator" (Confluence). Recipients from work item fields are read when the step runs. A warning shows when details or the description / page content are emailed to email addresses.
-
The PDF leaves out who voted what in Vote steps set to anonymize results for JSM customers, because the PDF can reach customers by email.
-
Failures (PDF over the size limit, email refused, upload refused, more than 500 addresses, PDF above what the email provider accepts) are shown on the step and in Instance errors (new type "PDF"); the approval goes on unless "Reject the approval if the PDF can't be delivered" is checked. When no PDF export slot is free, the step fails with "No PDF export slot was free for 3 minutes". Errors of Outlook (Microsoft Graph) sending start with Microsoft's error code, for example "ErrorInvalidRecipients: ...". On a Confluence site whose admin has not accepted the new app version yet, attaching fails with "a site admin must first accept the latest version of the app, which allows it to add attachments." Temporary errors (provider or Atlassian outages and connection failures, also while reading the recipients' email addresses) are retried, with up to 4 delivery attempts; a temporary failure on the last attempt while sending one by one stops the sending, and that batch and the rest count as failed with that reason. A refused recipient (5.1.x) fails only that address and sending goes on; any other refusal (relay denied, rate limit, a plain 550 without a detailed code) and account, authentication and connection failures count toward stopping the sending after 3 identical failures in a row while nobody has received the PDF. A channel that already succeeded is not repeated, also when a new approval version was created meanwhile. A Jira / Confluence upload that failed with a timeout or a 5xx error counts as attached when the file is found on the work item / page afterwards, so a retry does not attach a duplicate. A retried upload to a work item reuses the file name of the first attempt and looks for that file first, so a lost reply does not give two PDFs. When the site's own SMTP, Gmail or Outlook sends each recipient their own email, every recipient is recorded as soon as their email is sent, and a long list keeps its background job, so nobody gets the PDF twice when the list takes longer than ten minutes. When an email fails for a while after some recipients got it, the next delivery attempt emails only the remaining recipients, and "Emailed to N" counts the recipients of earlier attempts too, also when a later attempt fails or the step's job is lost. A PDF step whose background job was lost (for example queueing failed) is queued again while delivery attempts remain, instead of failing without trying. A job that comes back after its fourth attempt (dead worker, lost lease) fails the step as a lost job, records what was delivered and rejects the approval when the reject option is on; there is never a fifth attempt. Delivery attempts are counted on every version of the step.
-
A PDF step that failed without rejecting the approval shows as failed: in the approval steps view (work item panel, Confluence approvals tab, JSM portal), also for JSM customers, a yellow warning status circle and line segment instead of the green check, next to a yellow "PDF failed" badge; a yellow warning marker on the dashboard, also when the failed PDF step is in the approved / rejected / expired sections; "Failed" with a warning icon in status comments; "Failed" with a yellow warning mark and a yellow line in the step PDF; and Rovo says the PDF could not be delivered, also for PDF steps in the Approved, Rejected and Expired sections. In exports (table, step tree, Confluence export) a failed PDF step that did not reject the approval reads "Failed, approval not affected"; a PDF step that rejected the approval keeps "Failed". The in-progress label is "Creating PDF…" everywhere.
-
The step stays correct when a new approval version is created while it runs (approver field changes, reassignment), when the approval is archived meanwhile (it continues when it is unarchived), and when it is outdated meanwhile (it is not continued).
-
Web API v2: definitions and approvals support PDF steps (
detailsIncluded, the ordereddetailFieldIds,contentIncludedfor the description / page content) and the new recipient types. Detail field ids are checked as in the manual export: unique, at most 30, at least one while the details are included; saving a PDF step whose detail field ids don't exist in Jira is refused with "Fields[id: …] not found". A PDF step is refused with recipients while email is off, with work item field recipients read at the approval start, and with the reject option outside the approval steps.
Decisions
-
Email recipients reuse the Notify step's editor and model; the three new recipient types are offered in the Notify step too.
-
The step has the same content options as the manual export (AP-427): details off and description / page content on for a new step (leader's decision of 2026-11-17). Comments are not part of the PDF.
-
A stored field that is no longer valid is left out of the PDF instead of failing the step.
-
A failure does not reject the approval by default (as the Automation step); the reject option is per step.
-
The step PDF shows the steps like the manual export: as in the app by default and as a table by the global setting (AP-427 covers AP-2550).
-
In the PDF a PDF step creates, that step shows as Delivered with the time the PDF was created, in both layouts; other PDF steps show their real state (leader's request, 2026-11-18).
-
Confluence: attaching the PDF to the page needs the new Confluence app permission
write:confluence-file; it ships now (decision of 2026-11-17). Verified on the dev Confluence app: a version adding this scope (or the granularwrite:attachment:confluence) cannot be rolled out without admin consent,forge version bulk-upgraderefuses it with "privilege escalation due to additional scopes" (PRIVILEGE_ESCALATION_ROLLOUT), although the app already haswrite:confluence-content; a version without new scopes rolls out without consent. -
Fixed email text in the host's email layout; no per-step email template in v1. Reply-to / sender as all app emails.
-
No copy of the PDF email goes to the app's no-reply address: the built-in email, and a site's own email server without a sender address, send each recipient their own copy (decision of 2026-11-18).
Fixes included
-
AI Prompt step as the last step of an approval: the approved / rejected steps, the validity date and the completion webhook did not run; they run now.
-
AI Prompt step in the approved / rejected / expired sections never finished; it finishes now. Steps left in progress by this complete on the first run after the deploy, with their recorded result when there is one.
-
Emails sent through the integrated provider (Mailgun) dropped CC and BCC (shared email library); they are passed now.
-
The recipient type choice in the Notify step's recipient popup is a dropdown (six types no longer fit as radio buttons).
-
Exported step tables (macro export, PDF) named Notify steps "Approvers from a field"; they say "Notify" now.
-
Deleting a step asked "Are you sure you want to delete this http step?" (the internal type name, also for work item field steps); it asks "Are you sure you want to delete this step?" now.
-
The Notification action icon (bell) showed on Automation and AI Prompt steps, whose action can't be chosen; it shows only where the action is a choice (Webhook and people steps), in the approval view and in the definition editor.
-
AI Prompt step in a custom parallel group: when its result met the group's threshold, the next step stayed waiting and the approval stopped; the next step starts now (also for PDF steps).
-
When a PDF step rejects the approval, the Slack messages of the other steps still running show that the approval was rejected, without Approve/Reject buttons.
-
Coming back to the tab after a long time no longer shows "This step is taking longer than expected" for a PDF or AI Prompt step that already finished; only the time the tab was visible counts towards the 30 minutes.
Out of scope
-
Comments in the PDF.
-
Digital signature of the PDF: AP-2551.
-
Custom email text per step, branding, PDF/A.
Acceptance criteria
-
A definition with a PDF step can be saved in Jira and Confluence; the PDF step is last in the chooser with the "New" badge.
-
When an approval reaches the PDF step, the PDF is emailed to the resolved recipients and attached to the work item / page, and the approval continues.
-
The PDF contains the details chosen in the step, in their order, and the description / page content only when it is included.
-
The PDF shows the steps as in the app, or as a table when "Show steps as a table" is on; the step that creates the PDF shows as Delivered.
-
A PDF step in the approved / rejected / expired section runs after the approval ends.
-
Failures are shown on the step and in Instance errors; the approval is rejected only with the reject option.
Manual tester notes
-
Jira: create a definition with a PDF step (Send by email to "Approval creator", Attach to the work item), then a user step, and a PDF step in "Add success step" (attach only). Start it on a work item: the PDF step shows "Creating PDF…", then "Attached …pdf" and "Emailed to 1 recipient"; the PDF is in the work item's attachments and the email with the PDF arrives. Approve the user step: "View details" under the approval lists the success PDF step with its attachment, and the second PDF is attached.
-
Open "View details" while the success PDF step runs: it shows "Creating PDF…", then the attachment and "Emailed to" without reopening.
-
Two attaching PDF steps in the success section: two files ending -1.pdf and -2.pdf; in the first PDF its own step shows "Delivered" with today's date while the second PDF step, still running, shows "In progress" without a "Due" date.
-
Open the attached PDF: header, the approval with its steps as in the app (status circles and connector lines, and in Jira an avatar next to every approver, group and vote member, moderator and delegate), "Definition: … · Version 1" and the description; no Details section, because "Include details" is off for a new step.
-
The success PDF of a definition with a PDF step in "Add success step": the steps called after approval are in a "Steps called after the approval ended as "Approved"" box with their avatars (Jira), and the PDF step that created the file shows "Delivered" with today's date and time, not "In progress". In the success PDF, the main-path PDF step shows "Attached <its file>.pdf" under it, and a step emailing shows "Emailed to N recipients".
-
Settings > General > Exports: turn on "Show steps as a table" and run the definition again: the step PDF shows the steps as tables, the steps called after the approval included, and the creating step still shows "Delivered". Turn the setting off again.
-
Definition with a user step, a PDF step, then a user step: in the PDF the PDF step is counted and the progress reads 2 / 3, the same as in the work item panel.
-
A PDF step inside a parallel group: it counts itself in the PDF it creates; when it completes the group, the group shows as passed with the remaining members skipped.
-
A PDF step in the section after approval: the main path count in its PDF is unchanged.
-
A definition with a long name and an approval with a decision deadline, in both step layouts: no date, time, version or "Step x / y" breaks across lines in the PDF.
-
Edit the PDF step: check "Include details", uncheck Priority, drag Updated to the top and add a custom field with "Add work item field". Start the definition again: the PDF's Details start with Updated, have no Priority and end with the custom field. With "Include details" checked and every field unchecked, Save shows "Please select at least one detail".
-
Recipient popup (Notify and PDF steps): Jira lists Approval creator, User, Group, Email, All approvers, Work item watchers; Confluence lists Page creator instead of Work item watchers.
-
PDF step with Send by email, "Include description" and an Email recipient: a warning says email addresses get information from the work item.
-
Confluence (after accepting the app upgrade): a PDF step with "Attach to the page" and Send by email to "Page creator": the step shows "Attached …pdf" and "Emailed to 1 recipient", the PDF is in the page's attachments and the email arrives.
-
Confluence PDF step with "Include details": the list has Space, Created by, Created, Last updated, Version and Labels, without "Add work item field"; uncheck Version and drag Labels to the top: the PDF's Details start with Labels and have no Version.
-
A PDF step that cannot email (e.g. only "Work item watchers" on a work item without watchers) shows its error on the step and in Instance errors filtered by "PDF", and the approval goes on; with "Reject the approval if the PDF can't be delivered" the approval is rejected. The work item panel shows a yellow warning circle and a yellow "PDF failed" badge on that step, also in the JSM portal for a customer; the status comment shows a warning icon and "Failed"; in a PDF created afterwards the step shows "Failed" with a yellow warning mark.
-
A failed PDF step that did not reject the approval reads "Failed, approval not affected" in the table export; with the reject option on, the table export reads "Failed".
-
An AI Prompt step as the last step of a definition with a success step: after it finishes, the success step runs.
-
A custom parallel group needing 1 approval with a PDF step and a not-required user step, then a user step: when the PDF finishes, the group's user step is skipped and the next step starts.
-
PDF step emailing two users: each gets their own email, with only their own address in To. The same on a site using its own SMTP or Gmail server without a sender email in Settings > Email.
-
Definition editor and approval view: Automation, AI Prompt, Notify and PDF steps show no bell icon; Webhook and user steps still show their action icon.
-
A definition with a Vote step set to anonymize results for JSM customers, followed by a PDF step: the PDF shows the vote without who voted what.
-
Put a PDF step with "Reject the approval if the PDF can't be delivered" in a parallel group next to a user step that sends a Slack message; make the PDF fail (for example an unreachable recipient on a site using its own SMTP): the approval is rejected and the user's Slack message no longer offers Approve/Reject.
-
Have an out-of-office delegate decide on a user step, then run a PDF step to All approvers: both the approver and the delegate get the PDF.
-
Start an approval with a PDF step, switch to another tab for over 30 minutes, come back: the step shows its result and no "taking longer than expected" warning.
-
A failed PDF step that did not reject the approval shows a yellow warning marker on the dashboard and a yellow line under it in the step PDF.
-
A work item email field with one invalid address next to valid ones (Mailgun, and SMTP with a sender address): the valid recipients get the PDF, the step shows Emailed to N plus one failed recipient.
-
A PDF step on a site using its own SMTP server with no sender address, recipients: three invalid addresses first in the list, valid ones after: the valid recipients still get the PDF and only the invalid addresses fail.
Before release
-
The Confluence Forge app gets the new scope
write:confluence-file, which makes a major version that every site admin must accept (no bulk upgrade possible). It is deployed once, together with the rest of the release: a site whose admin has not accepted the new version stays on its previous version, without any of this release's Confluence changes, until the admin accepts. Atlassian does not email admins about the upgrade, so plan how they are told. The Jira app has no new scope. -
On the first run after the deploy, AI Prompt steps in the approved / rejected / expired sections that the old defect (fix 2) left in progress are completed and send their step webhooks: with their recorded result when there is one, otherwise as failed.