How to uncheck 'Notify watchers' check box on Confluence editor by default

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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

Please consider before making this change: As of Confluence 5.8 and above, Confluence will remember each user's setting for "Notify Watchers". Please see Confluence 5.8 Release Notes

Atlassian does not officially support the script on this page, per the Atlassian Support Offerings. It is provided for informational purposes only.

Purpose

To change the 'Notify watchers’ feature to be disabled by default when editing a page.

Solution

For Confluence 5.7 and below

  1. Navigate to Custom HTML in Confluence Admin (can be found in Browse >> Confluence Admin >> Custom HTML)
  2. Click Edit button
  3. In the At end of the HEAD field, copy/paste the following script

    <script type="text/javascript">
    AJS.bind('init.rte', function() {
      AJS.$('#notifyWatchers').attr('checked', false);
    });
    </script>
    
  4. Click Save

For Confluence 5.8 above, as suggested by Mikhail Zakharenkov

  1. Navigate to Custom HTML in Confluence Admin (can be found in Browse >> Confluence Admin >> Custom HTML)

  2. Click Edit button
  3. In the At end of the HEAD field, copy/paste the following script

    <script>
    function disableWatchers() {
      setTimeout(disableWatchers, 1000);
      if ( $('#notifyWatchers').attr( "mz" ) != 1) {
        setTimeout(function() {$('#notifyWatchers').removeAttr('checked');}, 1000);
        $('#notifyWatchers').attr( "mz", 1);
      }
    }
    disableWatchers();
    </script>
Last modified on Dec 18, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.