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?

Cheers.

2 answers

1 accepted

Hallo Mick

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

  • pagelister.py – 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.
  • pageduptest.py – Checks a text file for duplicate page names, and spits out the offending page names and space keys.

Details here:

http://ffeathers.wordpress.com/2012/07/28/how-to-find-duplicate-page-names-across-confluence-spaces/

Cheers, Sarah

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.

Bob,

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. :)

Cheers.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

320 views 1 4
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