In this page

General

How to make the browser open the PDF documents immediately?

(since 8.16.0)

In Jira versions prior to 8.16.0, the PDF documents generated by the app were downloaded to the browser and opened by the browser's PDF viewer extension immediately without any further user interaction.

In Jira 8.16.0, Atlassian changed the use of security headers to prevent clickjacking which also affects this behavior. In these modern Jira versions, the PDF documents are downloaded by the browser, but not opened automatically. You can click to the downloaded file and it will be opened, so it is just an extra click.

In order to return to the old behavior in Jira 8.16.0 or newer, follow these steps:

  1. Login to Jira as administrator, go to AdministrationSystem and click Advanced Settings (button in the top-right corner).
  2. Scroll down to the jira.security.csp.sandbox.excluded.content.type property.
  3. Edit the property value and enter "application/pdf" as value. If the original value was not blank, just append ";application/pdf" (note the semicolon!).
  4. Click "Update" to save your new settings.
  5. Export a new PDF document and it should be opened immediately.

I see "fo:table, table-layout="auto" is currently not supported by FOP" warnings in my log, but the PDF documents look good.

Those warnings don't have any effect. You can safely ignore them. (These will not appear when using modern version of the app.)

If you prefer not logging those warnings, then add the following lines to JIRA_HOME/atlassian-jira/WEB-INF/classes/log4j.properties and restart Jira:

########################################
# CLASS-SPECIFIC LOGGING LEVELS
########################################

## ... there is stuff defined here, leave that unchanged and add these 2 lines to the end of this section

log4j.category.org.apache.fop.fo.FONode = ERROR, console, filelog
log4j.additivity.org.apache.fop.fo.FONode = false

Questions?

Ask us any time.