The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Export information about all the pages in a space

Alexander Garkov
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!
March 30, 2023

Hello,

 

I would like to export information about all the pages in a space (GSEP/Confluence). This should include:

  • Similar to the information provided in "Page information"
    • Name of the page
    • Creation date
    • Created by (name), not userID
    • Modification date
    • Modified by (name)
  • Similar to the information provided in "Analytics"
    • Date of last visit
    • Optional: # of visits for a period longer than 3 months

What I did/tried so far:

  • Exported some pages as XML. In "entities.xml" - I could find the name, created date and last modification date. However the author and the last editor are not visible ([CDATA[....]]). 
  • Manually going to a page and collecting the information.

Question:

Does someone know how could I extract this information automatically? Manually visiting each page is not really an option as there are quite a lot of them, furthermore the last visit will be set to mine, which is not really an usefull information. 

 

Thanks beforehand!

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Velizar Borisov
Community Champion
March 30, 2023

Hi @Alexander Garkov and welcome to the community!

Depending on what do you intend to do after the export you can either:

- Export the whole space by going to Space tools (space administration) > Content Tools > Export. Here you can select what file to generate XML, HTML or PDF. Just be aware that you need the correct permissions for the space to do so.

- Use Confluence API to export all the information needed. Here are some examples how the API can be used:  https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/

 

Hope that helps,
Velizar

Alexander Garkov
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!
March 30, 2023

Hello Velizar, 

 

thanks for the answer. As mention in my previous post, I've already tried exporting the space, but the information is only partially (readily available) there. The intended use is also mention above - extracting the information (see the bullet points) about each page. 

 

I will try the API.

 

Best!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events