YouTrack InCloud 7.0 Help

Notification Templates

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.

Customisable templates are available in the Administration > Notification Templates page in YouTrack.

adminNotificationTemplates

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.

Notification Schemes

YouTrack supports two different notification schemes — two algorithms which define the number of notifications sent by youTrack and the content of each message.

SchemeDescription
DigestSeparate notification is sent about changes of each type (issue created, tagged, commented, voted, unresolved, and updated). For example, even if a user changes two issue fields and simultaneously comment this change, two notification are sent: one about updated fields and another one about the comment.
GranularOne notification is sent about Notification Templates in an issue.

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 either Notifications > [Template Name] > [Template Component] > email or Notifications > [Template Name] > [Template Component] > Jabber, respectively.

adminNotificationTemplatesEdit

Prerequisite Knowledge
In majority of use cases, you you only need to edit the template text. If you want to tailor the notification and modify its appearance, you should be familiar with Freemarker syntax.

To edit a notification template:

  1. Expand the item in the Notifications list.
  2. Open a template component (an <component_name>.ftl file)
  3. Make the desired changes.

The following controls are available for editing notification templates:

ControlDescription
Available VariablesLists the variables that can be used in this template. For more information, see Custom Notifications Language Reference.
Save changesSaves the current changes.
UndoReverts the most recent change.
RedoRestores the most recently reverted change.
Reset to defaultDiscards 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.

Last modified: 29 September 2016