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.
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 \" ... \" "
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.