Start here

Generate PDF in Azure DevOps

Azure DevOps has no built-in PDF export for work items, queries or sprint backlogs. Bravo Notes adds one: load work items, render them through a template, and export a PDF with a cover page, table of contents, header and footer, either from the Bravo Notes UI inside Azure DevOps or from a build task in Azure Pipelines.

Where you can generate a PDF

  • Bravo Notes UI: open Bravo Notes from the project navigation, add work items on the Work items tab, pick a template and click Export.
  • Context menus: the Export... action on the backlog, the work item form, query results and the Kanban board opens an export dialog with a preview.
  • Queries, Reports tab: your Bravo Notes templates are available directly on a query result.
  • Build task: the Bravo Notes task for Azure Pipelines renders the same template with PDF as the output format and saves it to a file, attaches it to a Wiki page, or sends it by email.

PDFs are rendered on the Bravo Notes backend. The Markdown and HTML output is produced in the browser or on the build agent.

What goes into the PDF

Everything the template produces. Typical content:

  • Work item fields, including rich text fields such as Description and Acceptance Criteria with their inline images.
  • Sections per label, for example new features, fixed bugs and known issues.
  • Groups by any field such as Area Path, Iteration or Priority.
  • Linked work items, for example the test cases that cover a user story, with the links and linkSection helpers.
  • Test steps, expected results and step attachments from Test Case work items with the testSteps helper.
  • Build and release variables in a pipeline, and parameters such as a version number.

See the template syntax quick start and the syntax reference for the helpers.

PDF options in the export dialog

OptionWhat it does
Page size and orientationLetter or A4, portrait or landscape
Cover pageAdds a title page rendered from the Cover page (PDF) template
Table of contentsGenerated from the headings in your document, with page numbers and links; enabled by default
Header and footerRepeating content from the Header (PDF) and Footer (PDF) templates, with page numbers
MarginsLeft, top, right and bottom margins for the document, the cover page and the table of contents page

Page breaks inside the document are placed with the {{pageBreak}} helper. Styling is CSS: each PDF part has its own stylesheet on the Styles tab.

Read more: adding a page footer or header and automatic table of contents.

Example: sprint report as PDF

# Sprint report: {{ param 'Sprint' }}

{{#section '$UserStory'}}
## Delivered this sprint

{{#workItems orderBy='Priority'}}
### {{ field 'Title' }} ({{ id }})

{{{ field 'Description' }}}
{{/workItems}}
{{/section}}

{{pageBreak}}

{{#section '$Bug'}}
## Fixed bugs

{{#workItems}}
- {{ field 'Title' }}
{{/workItems}}
{{/section}}

Add the sprint's work items with Add > Iteration, set the Sprint parameter on the Parameters tab, open the preview, then Export > PDF.

Generating the PDF in a pipeline

Add the Bravo Notes task to a build or release pipeline, select the template, choose a work item source (associated work items, a query, an iteration, or everything not yet deployed to an environment), set Output format to PDF and pick a target:

  • File on the agent, for publishing as a pipeline artifact
  • Wiki, with the option to attach the PDF to the exported Wiki page
  • Email, with the PDF as attachment

The build task page lists every option. The scheduling guide shows a weekly report pipeline step by step.

Sharing the PDF

Download it from the export dialog, send it by email from the same dialog, or post it to a Microsoft Teams channel using the channel's email address (how to). Readers of the PDF do not need Azure DevOps access or a Bravo Notes license.

Frequently asked questions

Can Azure DevOps export a query to PDF without an extension? No. Queries export to CSV, and the browser's print function is the only built-in way to get a PDF of a page. Bravo Notes renders a formatted document instead of a screenshot of the grid.

Does the PDF include images from work item descriptions? Yes. Inline images from rich text fields are embedded. Attachments are listed with links, and image attachments can be embedded with the images helper.

Can I brand the PDF? Yes. The cover page, header and footer are HTML templates with their own CSS, so logos, fonts and colors are under your control.

Is the PDF generated inside my Azure DevOps organization? No. The document content is sent to the Bravo Notes backend for PDF rendering. The security scopes page lists what the extension can access.

Previous
Introduction