Confluence 5.8 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
Customising the Confluence email templates is not supported. If you do decide to edit the templates we strongly recommend you use a test instance of Confluence.
Any customisations you make to the Confluence email notification templates will need to be reapplied after upgrading Confluence.
Email notification templates are contained within the confluence-email-notifications plugin, which is a bundled plugin (add-on) that is installed automatically when you install Confluence.
Confluence インストール ディレクトリにアクセスできる管理者のみが、Confluence メール テンプレートを変更することができます。
Confluence uses Soy templates (also known as Closure templates) for email notifications. You can find out more in the Google Developer docs or see our developer tutorial which contains a short introduction to using Soy templates.
メール通知テンプレートを変更する方法:
- Confluence web アプリケーションのフォルダで、
/confluence/WEB-INF/atlassian-bundled-plugins/confluence-email-notifications-plugin-x.x.jarファイルを探します。
注: このプラグインは独立してバージョン管理されており、バージョン番号は Confluence のバージョン番号と一致しない場合があります。 - Copy this file to a working location and extract the jar file. Find out more about how to edit files within .jar archives.
- jar ファイル内では、テンプレートは
/templates/フォルダに格納されています。Soy テンプレートを編集し、変更を加えます。 - Zip all the files and change the file extension to .jar (or refer to the guide on editing files within .jar archives for other methods).
- 新しい jar ファイルを
/confluence/WEB-INF/atlassian-bundled-pluginsフォルダにドロップ (元のファイルを上書き。簡単にロールバックするために元のファイルをコピーしても構いません) し、インスタンスを再起動します。 - 更新されたプラグインを製品にインストールする前に、変更を慎重にテストします。
プラグインに含まれるテンプレートの編集にはテスト インスタンスを使用することを強くお勧めします。プラグインが有効化できない場合、Confluence ログの情報を確認し、Soy テンプレートに対する変更に問題がないことを確認します。