![]() Go to the Bitbucket repository and choose ‘get source’, then download the zip file and unpack it into a directory on your computer. Open a command window and type ‘python’ to see if all is OK.The line for the space key starts with “ Spacekey=“.Įxample illustrating the format of the file: The space key is on a separate line at the start of each set of page names.The pageduptest script expects a file that contains a list of space keys and page names. But you do need it for the pagelister script. Note: You don’t need access to Confluence, nor the Confluence remote API, to run the pageduptest script. It puts the page names and space keys into a text file in the format required by the pageduptest script. Option 2: Use the pagelister.py script to list all the pages in a given set of Confluence spaces.This is handy for people who do not have access to the Confluence remote API. Copy the page names and paste them into a text file. Option 1: Use a Children macro on a Confluence page, to list all the pages in your space.To produce the input text file, you can do one of the following: The script assumes an input text file of a specific format. The pageduptest script reads a text file containing Confluence space keys and page names, and reports on duplicate page names. pageduptest.py – Checks a text file for duplicate page names, and spits out the offending page names and space keys.pagelister.py – Accesses Confluence via the remote API, and lists all the pages in a given set of Confluence spaces.The scripts are in a repository on Bitbucket. Enter the pagelister and pageduptest Python scripts You’re welcome to use them, with the proviso that they’re not perfect. I’ve written a couple of scripts to solve the problem. Here’s another use case: Last week a customer emailed me saying that he has to merge 9 spaces, and he needs to find out whether he has any duplicate pages that would break the process. So you need a way of finding duplicate page names. But you can’t have two pages with the same name in the same space. For example, our team is planning to put copies of all the product documentation (JIRA, Confluence, Bamboo, FishEye and Crucible) into the Atlassian OnDemand documentation space. Technical writers sometimes need to check for duplicate page names across different spaces in Confluence wiki.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |