PDF step: choose the work item fields and comments in the PDF

Description

Goal

Let the PDF step (AP-541) choose what the work item / page part of its PDF contains, instead of the fixed set of the manual export (AP-427).

Change

  • Jira: choose any system or custom field for the details table with the app's existing field picker, each rendered by its field type (text, select, user, date, rich text). Today's fixed set (type, status, priority, assignee, reporter, created, updated) stays the default.

  • Comments: none (default), all, or the last N. Jira work item comments; Confluence page footer comments.

  • Confluence: choose among the page details (space, created by, created, last updated, version, labels) and the page content.

  • The options sit in the PDF step form under "Include work item content" / "Include page content", and in Web API v2 for PDF steps.

Notes

  • Builds on AP-541: ReferencePdfService.exportApproval and the PDF step's contentIncluded option; the new options extend definition_pdf_step / approval_pdf_step.

  • Fields and comments are read with the app's identity, like the rest of the PDF, and count toward the 25 MB PDF limit.

  • To decide: a JSM request's internal comments must not be emailed; offer public comments only for service projects?

  • The manual export keeps its fixed content.

Acceptance criteria

  • A Jira PDF step with chosen fields and the last 3 comments produces a PDF with exactly those fields and comments.

  • Without changes to the new options, the PDF is the same as today.

  • A Confluence PDF step can leave out the page content and include the footer comments.