Forums

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

How to change 'No Format' macro to 'Code Block' macro in all confluence pages automatically?

Aishwarya Singh
Contributor
July 3, 2020

Hi,

I want to update the content of 'No Format' macro used in all confluence pages to 'Code Block' macro. Can anyone suggest if there's an automatic way for it?

The quantity of pages is quite high, hence I want to avoid manual updates.

1 answer

0 votes
Italo Qualisoni [e-Core]
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.
July 5, 2020

I've done this KB that shows how to update a macro reference to a new JIRA, probably you would need to do the same, do a find/replace with the tags that matches the no format with the code blocks.

https://confluence.atlassian.com/confkb/how-to-bulk-update-jira-issue-macro-to-point-to-a-different-jira-instance-596771463.html

I've never done this before but theoretically it should work, since this is a database change you should:

Always have a database backup

Always test it first in a Staging environment with similar settings with the production;

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events