How to: Change the Mail Alert Format

How to: Change the Mail Alert Format

Visual Studio 2005

You can configure to use different templates when you send e-mail notifications. Users configure project alerts in Team Explorer for various notifications. For example, users will generate notifications for projects, work items, and build events. By changing the underlying xsl transform, you can customize the look and feel of the notification that is sent to the Team Foundation Server user.

The e-mail notifications are formed by Team Foundation Server using a transform or .xsl file upon notification of specific events. For more information on project alerts, see

The application-tier computer contains the files in a specific folder:

<drive>:\Program Files\Microsoft Team Foundation 2005\Web Services\Services\v1.0\Transforms

Use an XML editor such as Visual Studio to change any of the transforms. These are the two transforms for the work item event:

WorkItemChangedEvent.xsl

Formatting for HTML e-mail

WorkItemChangedEvent.plaintextXsl

Formatting for plaintext e-mail

The .xsl file transforms the XML for the event into an e-mail message. Edit the .xsl file to get a different format for the e-mail notification.

To edit the e-mail template for sending e-mail notifications for work item changes

  1. On your application tier computer, open this folder:

    <drive>:\Program Files\Microsoft Team Foundation 2005\Web Services\Services\v1.0\Transforms

  2. Open WorkItemChangedEvent.xsl.

    NoteNote

    You should make the similar changes to the WorkItemChangedEvent.plaintextXsl for any users who have signed-up for plaintext messages.

  3. Edit the file to reflect the message that you want in the notification e-mail.

  4. Save the WorkItemChangedEvent.xsl.

Show:
© 2016 Microsoft