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

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および 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.

目的

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

ソリューション

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>
最終更新日: 2024 年 12 月 18 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.