This topic describes the cr-new.txt message template file and examines message template syntax in general. You can use HTML or text format for your custom templates. You server configuration repository contains a Notifications subfolder containing this file and other message template files in both HTML and text format for change requests, requirements, tasks, and topics.
This message has been sent to you automatically by StarTeam Server because the Change Request described below has been created by ~~ModifiedUserID~~. The Change Request is located in Project: ~~project~~ View: ~~view~~ Property Summary: Type: ~~type~~ Status: ~~status~~ Responsibility: ~~responsibility~~ Priority: ~~priority~~ Severity: ~~severity~~ Platform: ~~platform~~ Entered By: ~~EnteredBy~~ Entered On: ~~EnteredOn~~ Synopsis: ~~synopsis~~ Description: ~~Description~~ You can access Change Request #~~ChangeNumber~~ by following this URL: ~~url~~
Whenever you want to use the current value for a property field, enter the internal name for that field preceded and followed by two tildes (~~). For example, Status: ~~status~~ displays the word “Status:” in the email followed by the current value of the status property.
The file also uses ~~url~~ to include the StarTeam URL for the change request.
The text of cr-modified.txt uses the following syntax:
~~isnew.AddressedBy?Addressed By: ~~~~isnew.AddressedBy~~~~isnew.AddressedBy?~~
In these expressions, the isnew prefix precedes the internal name of the property field. This allows a template to specify that the property field value and/or additional formatting text should be included in the resulting notification email only if the value of the field has been changed, that is, only if the previous version had a different value for this field.
The text Addressed By: (from the first expression, ~~isnew.AddressedBy?Addressed By: ~~), the value of the AddressedBy property (from the second expression ~~isnew.AddressedBy~~) and a trailing linefeed (from the last expression) display in the email notification message only if the value of the AddressedBy property has been changed from the previous revision of the change request.
If you are using an HTML message template instead of the text version, you could display the output of the expression in bold text (only if it was changed for this revision) as follows:
Addressed By: ~~isnew.AddressedBy? <b>~~~~AddressedBy~~~~isnew.AddressedBy?</b>~~
The above example behaves as follows in an email notification:
In general, you can enter the following information into the message template files: