how can I find pages with the same name in two different spaces?

We're moving the entire content of several spaces into another sapce.

When I do this, I keep getting errors to do wth duplicate pages names. However, unhelpfully Confluence doesn't say which names are duplicated. This means the only way to find out what the duplicates are, is to do it manually.

Which is a ridiculously time consuming thing to do, especially when each space that's being moved has 100s of pages.

Does anyone know how I can do find out what these duplicates are?


2 answers

1 accepted

Hallo Mick

I've written a couple of Python scripts to do this.

  • – Accesses Confluence via the remote API, and lists all the pages in a given set of Confluence spaces. It puts the page names and space keys into a text file in the format required by the pageduptest script.
  • – Checks a text file for duplicate page names, and spits out the offending page names and space keys.

Details here:

Cheers, Sarah


thanks for the info, I've passed it on to our man who can. :)

Very useful indeed.

I don't know how to do it easily, but you could use getPageList from Confluence Command Line Interface on both spaces to at least visually see differences and duplicates in the 2 lists. You will need the latest snapshot to get the result ordered by page title.


thanks for the idea, but that would mean visually comparing the content of three different spaces, which I'm certainly not going to do. :)

Apparently the API can be used to do this, but I've no idea how to, and at 2130 on Sunday evening, I'm not about to try finding out how. :)


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,151 views 62 8
Join discussion

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