Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to bulk export blogs in personal space?

Kim Magden
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 2, 2020

When people use their personal space to create blogs, is there a best practices to bulk export these blog posts into pdf format? I know you can export individual posts. 

1 answer

1 accepted

1 vote
Answer accepted
WW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 2, 2020

There's a nice little table on what can and can't be bulk exported in which format here.

Being a personal space or global space makes no difference for this.

As you know, you can't export your whole blog easily/directly. You can export your whole (Full Export) personal space to XML, which does include blog posts, even though when you go to export it says this:

Generates an XML file for each page in this space, including those not visible to you. The export includes comments and attachments, but excludes blog posts.

Unfortunately, you cannot pick and choose which posts or even the whole blog to export in XML. You could use an XML to PDF converter, but I'm not sure how that'd turn out.

If you know how to code, the REST API might help. You'd probably have to put in some work to get it to look like you want on a PDF, though.

You'd use something like this to grab the content:

http://example.com/rest/api/content?type=blogpost

Another option, if you code, is to look at the browser's Web Developer Console (name varies by browser) while you export one blog post to a pdf, you can see what it's doing and try to replicate that. Here's an example of one I exported:

https://example.com/spaces/flyingpdf/pdfpageexport.action?pageId=123456789

You could grab all the blog pageIds and run them through the first URL. That'd hopefully get you started.

UPDATE: After playing with it some more, I found that you don't need the code below.  If you don't run it from the UI, it will download the file again.

https://example.com/download/temp/pdfexport-20200102-020120-1636-37/SpaceKey-BlogSample-020120-1636-38.pdf?contentType=application/pdf

If you can't code, then you are probably stuck with "printing" to a PDF instead of actually exporting, which would eliminate any customizations you may have for exporting PDFs in your space. There are a number of ways to print to a PDF. Here's an example I found after a quick Google search.

I hope at least one of the suggestions helps!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events