Custom Notifications Language Reference
Use the following reference to locate elements in notification templates and modify them present information in the desired format.
Local variables can be used, but not changed by the user. Local variables are predefined and read-only.
Notification's header, short text identify the notification type (available values: created/updated/commented/voted/tagged, etc.). Variable is used in default email subject template.
Notification sender's info
Notification recipient's info
Evaluates to "YouTrack"
Evaluates to the current version
Evaluates to build number
Evaluates to description of the reason a user receives notification. Description form differs in jabber and email notifications.
Evaluates to an issue, about which notification is sent.
Contains info about changes (issue project, summary, description, custom fields, visibility group, links, attachments) that initiated notification.
Evaluates to an edited or posted comment, about which notification is sent.
true - comment has been edited, false - new comment has been posted
Evaluates to an tag, which has been added to or removed from an issue.
indicator that issue has been tagged/untagged
indicates that issue has been voted/unvoted
Imported project or project failed to import (id, full name, issues, leader...). Variable is used in the "Import status" notification.
Java Throwable object
text of the message in the "Import status" notification.
You use FTL tags to call directives. Besides build-in directives like the
#list directive (Built-in directives), you can define your own directives in Freemarker. For more information, see (User-Defined directives manual).
- wiki process embedded text using Wiki syntax and keywords. Directive apply html escaping.
parameter no parameters
body text to process
- diff render html element presenting text change. Mark deleted and added sections of text with given styles.
oldText old version of text
newText new version of text
insStyle html style of inserted parts of text
delStyle html style of deleted parts of text
body no body
- stacktrace render the html component representing stacktrace of Throwable
throwable instance of Throwable Java class
body no body
Everywhere the type of returned value is
list<?>, you can iterate over method result using
getLinkedIssues(Issue source, string linkRole)
getPossessiveName(User you, User from)
getStarSrc(Issue issue) return URL of 'Star' tag image resource