Bulk edit pages in space
Asked by siva:

In our confluence space they were 90 pages, i need to update those 90 pages with same value. Is there any bulk change option if it is please help me with this.

Thanks in advance,

Siva.


Answers:
author: Tosin Ojikutu
body: Subbing so I get notified if a more elegant way of doing this is implemented. Since we can do it on Jira currently, we should hopefully be able to one day do it in Confluence ??

comments: author: Amelie Winkler _Appfire_
body: Hi [@Tosin Ojikutu](/t5/user/viewprofilepage/user-id/4947161) -- Amelie from the Appfire team here!

If you're open to third-party add-ons, there are a couple of apps that can help with bulk updates in Confluence, but it depends on what you want to update on your Confluence page.

Can you elaborate on what you'd like to bulk-edit?


author: Tosin Ojikutu
body: Thanks [@Amelie Winkler _Appfire_](/t5/user/viewprofilepage/user-id/4980398) I had about 20 pages that had a prefix 'PGD' in their title so I wanted to remove the prefix and add a 'PDx' suffix to all the pages at once.

I eventually went in and added them all yesterday manually but it would have been cool to bulk edit them at once. (Though on reflection, I don't think that specific bulk edit option is available on Jira either ?)


author: Amelie Winkler _Appfire_
body: Hi [@Tosin Ojikutu](/t5/user/viewprofilepage/user-id/4947161) -- I'm glad you got it sorted -- even if it was manually! Next time you face a similar bulk change and want to avoid the manual grind, you could try our app, [Confluence CLI](https://marketplace.atlassian.com/apps/284/confluence-command-line-interface-cli?hosting=cloud&tab=overview&utm_source=organic&utm_medium=atl-community&utm_campaign=engagement).

It's a command-line tool that could have saved you a bunch of time with one command like this:

```
--action runFromPageList --regex "PGD.*" --space COM --common "--action renamePage --title \"@title@\" --space COM --findReplaceRegex "PGD:" --findReplaceRegex "$:PDx"""
```

We've got versions of this app for Jira, Bamboo, and Bitbucket, too -- in case you ever need to tackle bulk edits/changes in any of those products.


author: Tosin Ojikutu
body: That is amazing. I will come back to this if I come across this issue in the future when working with future clients.   
Thanks so much again [@Amelie Winkler _Appfire_](/t5/user/viewprofilepage/user-id/4980398)


author: Stavros_Rougas_EasyApps
body: [@Tosin Ojikutu](/t5/user/viewprofilepage/user-id/4947161)if you are moving to cloud (might be forced to) a no code way to add a prefix or suffix in bulk across any space is [Space Content Manager](https://marketplace.atlassian.com/apps/1226657/easy-toolbox-for-confluence-space-level-content-editing?hosting=cloud&tab=overview). It is one of a suite of tools we have built. Got tired of macros, CQL...


author: Tosin Ojikutu
body: Thanks Stavros. I do love a good no code option ?


author: Thiago Masutti
body: Hi [@siva](/t5/user/viewprofilepage/user-id/3700467)   
I hope you are well.

If you have the [pageID](https://confluence.atlassian.com/confkb/how-to-get-confluence-page-id-648380445.html) of the target pages, you can create a script to update each page using the [Confluence REST API](https://developer.atlassian.com/server/confluence/confluence-server-rest-api/).

For an example, refer to [Using the Confluence REST API to upload an attachment to one or more pages](https://confluence.atlassian.com/confkb/using-the-confluence-rest-api-to-upload-an-attachment-to-one-or-more-pages-1014274390.html) .

I hope that helps.

Kind regards,  
Thiago Masutti


author: Brant Schroeder
body: [@siva](/t5/user/viewprofilepage/user-id/3700467)

This is the only thing I have seen to accomplish this but it is not the most elegant solution.

<https://community.atlassian.com/t5/Confluence-questions/Bulk-change-confluence-pages-content/qaq-p/1026293>

comments: author: siva
body: Hi Brant thanks for welcome,

Yes, i saw that question before i think that is very lenghty process and risky too is there any alternate ways Thanks....


author: Brant Schroeder
body: I don't know of a way to just edit a snippet of content on a page through a bulk process, sorry.


Tags: confluence-server

server