How to replace Show To and Hide From macros with Show If and Hide If macros
Summary
In this knowledge base article, we'll guide you on how to replace the deprecated Hide From and Show To macros with the Hide If and Show If macros.
Environment
Confluence or JIRA version
Add-on version
Diagnostics Steps
Not applicable.
Cause
Older versions of Visibility (before version 5.0.0 ) used to have two macros that have now been deprecated:
Hide From
Show To
Workaround
Not applicable.
Resolution
Keep a back-up of the space that you'd like to perform changes on as a safety measure.
Install Search and Replace.
Navigate to General configuration> Search and Replace.
Select "Search and Replace".
Enter "show-to" or "hide-from" in the Search parameter.
Enter "show-if" in the Replace With parameter if you want to replace the Show To macro.
Enter "hide-if" in the Replace With parameter if you want to replace the Hide From macro.Click on Replace All.