Import multiple HTML-pages with page-hierarchy and attachments into Confluence



I want to import multiple HTML-pages with page-hierarchy and attachments into Confluence. This pages are exported from a notes database (with thrid-party-software Midas -> very good html exporter by the way)

I've tried:

1. Use the integrated importer with this official documentation:

  • Put my folder with html-files to my server
  • Confluence -> Space Tools -> Import -> directory path to the folder
  • result: perfekt converted pages, but without hierarchy and attachements
  • Any ideas? Could i use the integrated Importer for hierarchy and attachements?

2. Universal Wiki Converter:

  • Download java-source -> run UWC -> connenct zu Confluence
  • Try to use mediawiki convention (mw allows html) to convert and import my files 
  • result: crazy broken html-pages, also without hierarchy and attachements

i need a automated resolution, because we have mere then 10.000 documents to import. So, maybe someone have any other ideas? I dont think there is a plugin for this job but please correct me wink


Develop own addon-> Puhh, please help me!



4 answers

I'm looking for something similar

Did you guys find a solution? If you did please share. I am looking for what you discussed here and if anyone of you has found it, I would be grateful to know. Perhaps you have developed a fast effective solution. please share. 

I'm looking for the same. I have reports generated, which consists of a couple (~1000) of HTML pages structured in a folder, which I want to publish on Confluence. I need to refresh that regularly, so manual import is not a solution

The best approach is to use the REST API for programmatically importing the HTML pages into Confluence. The input HTML pages must be normalized into XHTML, which can be done using a library like JSoup. Then, you must change the code in the XHTML page for example by converting the links into Confluence links. Once done, you upload the XHTML file and the attachments into a Confluence page.

I've done this for importing the content of Notes databases, and it works well.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,041 views 2 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you