How to uncheck "Watch this page" check box on comment editor by default
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
This is considered a customization, therefore it doesn't fall under Atlassian Support Offering. This has been tested in Confluence 5.8.8
Purpose
To have the 'Watch this page' check box unchecked by default when editing a page.
Solution
Navigate to Custom HTML in Confluence Admin (can be found in Browse >> Confluence Admin >> Custom HTML)
Click Edit button
On At end of the HEAD field, put the following javascript snippet
1 2 3 4 5
<script type="text/javascript"> AJS.bind('init.rte', function() { AJS.$('#watchPage').attr('checked', false); }); </script>
Click Save, and notice it will be unchecked by default
Was this helpful?