Notification Templates provide you with tools to customize email and Jabber notifications to suit your user communication requirements. You can edit the default Freemarker-based templates: add your own subject, change the language, and tailor the message text.
The default notification templates present key components of each message in a format that is easy to scan in a message preview. Most recipients don't even need to open an email notification to stay up to date. The components in the email headers are also optimized so users can filter their inbox and collect YouTrack notifications in dedicated folders.
That said, the email client that you use in your organization might not present this information in a friendly way. To modify the format of your email messages, customize your notification templates.
Customizable templates are available in thepage in YouTrack.
The Notification Templates page displays a list of templates. Each item in the list can be expanded to view and edit the template components. Template components are actual Freemarker .ftl files that are used as "building blocks" for messages.
YouTrack supports two different notification schemes. These define the number of notifications sent by youTrack and the content of each message.
One notification is sent about all all simultaneous changes in an issue.
Separate notifications are sent for each event type (issue created, issue resolved, tag added, tag removed, updates, comments, votes, and spent time). For example, even if a user changes two issue fields and simultaneously adds a comment, two notification are sent: one for field updates and another one for the comment.
When the digest scheme was introduced, YouTrack migrated installations that did not have customized notification templates to the new scheme. If you still use the granular scheme to support customized notification templates, we strongly encourage you to customize the digest message components and switch to the digest scheme.
What are Simultaneous Changes in the Digest Scheme?
When the Digest scheme is enabled, issue changes for a single notification are collected as follows:
While a user makes changes to an issue until the first pause of 1 minutes in his actions.
While a user updates an issue until another user interrupts, and start to make changes to the same issue.
That is, if John Doe updates issue TS-1, and his colleague, let's say Jane Doe, distracts him so he doesn't do anything with the issue within a minute, then the notification will be sent about any changes he made to TS-1 before the distraction.
The similar situation is when John Doe is updating the issue TS-1 and someone (his rival, probably) starts to update the TS-1 at the same time. As soon as another user's changes are registered, the notification about changes made by John Doe until that moment are sent.
Edit Notifications and Template Components
Notification templates are available for notifications sent by email and Jabber. To update template for a specific protocol, just make changes in the corresponding branch of the notification template "tree": expand eitheror , respectively.
To edit a notification template:
From the Core Features section of the Administration menu, select Notification Templates.
Locate the message component that you want to modify. For components that are integrated into specific message templates, expand the item in the Notifications list.
Click the name of the template component that you want to edit (a <component_name>.ftl file).
Make the desired changes in the message template editor.
Click the Save changes button in the header.
The following controls are available for editing notification templates:
Lists the variables that can be used in this template. For more information, see Custom Notifications Language Reference.
Saves the current changes.
Reverts the most recent change.
Restores the most recently reverted change.
Reset to default
Discards all current and previously saved changes and restores the default notification.
Preview and Test Changes
To view how your changes affect a template or a template component, select an issue in the Issue selected for preview dropdown list. When you select a notification from the list, a preview that contains data from the selected issue is shown in the Details sidebar.
Along with the preview that shows changes in the browser window, you can also see your changes in your email or Jabber client. Select the Email or Jabber branch of a template and click the Send test email or Send test Jabber button in the toolbar.