How can i insert ContentByLabel macro at the end of all pages in a space using CLI?

I want to add ContentByLabel macro to all the pages in a space using CLI. Although i created a template Blueprint page that will have that and solves this for all newly created pages, but i need the bulk action to be done on all legacy pages hence why i need a way to automate this.

1 answer

This widget could not be displayed.

Use modifyPage and the content2 parameter that gets put at the end of the current page content. The parameter value defaults to wiki or use *--noConvert* if you want to specify storage format.

Once you have verified that does what you expected, then make the bulk change by using something like:

-a runFromPageList --space XXX --common "-a modifyPage --id pageId@ --content2 \" ... \" " 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

117 views 12 6
Read article

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