Team Alert not sending email in certain cases

Jul 20, 2012 at 8:01 AM
Edited Jul 20, 2012 at 8:02 AM

Hi All

I have just set up team alert on our TFS server. I have changed the config file to test if the emails are being sent.

when I set the alert to below settings

<alert 
    name="Bug Changes" 
    event="WorkItemChangedEvent" 
    filterExpression="$&quot;CoreFields/StringFields/Field[ReferenceName='System.WorkItemType']/NewValue&quot; = Bug AND $&quot;CoreFields/StringFields/Field[ReferenceName='System.AuthorizedAs']/NewValue&quot; &lt;&gt; $&quot;CoreFields/StringFields/Field[ReferenceName='System.CreatedBy']/NewValue&quot;">  
    <recipients>    
     <recipient     
      name="Owner"     
      address="myemail@mydomain.com"    
      type="EmailAddress"     
      allowHtml="true"/>  
    </recipients>
   </alert>

it send me an email when the workitem is changed.

 

But if I change the config to the following

<alert 
    name="Bug Changes" 
    event="WorkItemChangedEvent" 
    filterExpression="$&quot;CoreFields/StringFields/Field[ReferenceName='System.WorkItemType']/NewValue&quot; = Bug AND $&quot;CoreFields/StringFields/Field[ReferenceName='System.AuthorizedAs']/NewValue&quot; &lt;&gt; $&quot;CoreFields/StringFields/Field[ReferenceName='System.CreatedBy']/NewValue&quot;">  
    <recipients>    
     <recipient     
      name="Owner"     
      address="CoreFields/StringFields/Field[ReferenceName='System.CreatedBy']/NewValue"    
      type="DisplayNameField"     
      allowHtml="true"/>  
    </recipients>
   </alert>

it does not work.

What do I need to do to make it work?

Thanks in advance for the help

 

Feb 21, 2013 at 9:01 AM
+1