Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add macro in bulk to many pages on Confluence

Ben O'Brien
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 1, 2018

Hello, I have about 1000 pages I need add the "Attachment" macro to. It's not needed on every single page on the entire space, just under a certain branch where these 1000+ pages lie. 

I found something similar to this question, but not even sure how to complete this action:

https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-add-table-of-content-macro-to-all-Pages-in-a-space/qaq-p/549078

 

1 answer

1 accepted

0 votes
Answer accepted
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 2, 2018

The link you referenced was adding the macro to all pages by modifying the layout. Where you want to add a macro only to specific pages, you probably need to write a script (for example, using Python) that updates each of these pages using the REST API.

You can see some examples  here rest.

If you are not familiar with scripting or using a REST API, either be prepared for a steep learning curve, or find someone who is,

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events