Forums

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

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

Ahmad Faour
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, 2017

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

0 votes
Bob Swift {Appfire}
Contributor
November 6, 2017

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
TAGS
AUG Leaders

Atlassian Community Events