You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have been creating Confluence pages since 2018. I have some pages in the old format and some in the new format. Currently when I come across a page in the old format, I scroll down to the bottom of the page, Click Preview Page, Convert the Page and then Publish it on the new format. The problem is that I am a user (not a Confluence admin) and with hundreds of pages, I don't have an easy way to figure out which ones need to be converted. I am not looking to convert all of them in bulk but I would like to find a way to get a listing of all the pages in my space that are non-converted so I can convert them over as I have bandwidth. I would be open to pulling this data from the REST API if there isn't a way to find them via the UI.
Use Get content properties in the API:
You'll see something like this returned if the page has been edited/migrated to the new editor:
{
"id": "1234567890",
"key": "editor",
"value": "v2",
"version": {
"when": "2021-07-28T01:34:13.798Z",
"message": "",
"number": 1,
"minorEdit": false,
"contentTypeModified": false
},
"_expandable": {
"content": "/rest/api/content/1234567890"
},
"_links": {
"self": "https://yoursubdomain.atlassian.net/wiki/rest/api/content/1234567890/property/editor"
}
}
Is there a way to pull all pages in a space or do I literally have to go to each page in the space and check for that value?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes - use the search API and ask it to return the editor metadata in the results. As a starting point:
wiki/rest/api/content/search?cql=type=page&expand=metadata.properties.editor
You will need to page through the results if you have lots of content or add additional CQL filters to narrow the results, e.g pages for a particular space or date range.
To the best of my knowledge, you can't just ask for pages where editor.value = v2 as the property would need to be indexed by search.
One other suggestion - ask Atlassian support to run a backend query for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.