The preview pane of the view file macro is blank when using wiki markup

Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

The preview pane of the view file macro will not display the document, and the refresh button will be grayed out. The same applies for similar macros such as viewdoc, viewxls,... You can read more details about this issue in CONFSERVER-27361 - Adding viewfile, viewdoc,... macros using wiki markup does not generate the right XHTML.

Diagnosis

- Create / save an empty page and attach a Word file

- Go into the "Edit" and "Insert" "Wiki Markup", the markup to insert is:

1 {viewfile:name_of_attached_word_file.doc}

- Save the page, in viewing mode the content of the word file should be shown as expected

- In "Edit" mode again, "Edit" the macro. This shows an empty screen.

Resolution

The right way to insert that macro is:

1 {viewfile:name=name_of_attached_word_file.doc}

Inserting the macro from the macro browser is another alternative.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.