Issue with workitem event using a string value

Sep 18, 2012 at 8:38 PM

For some reason I can't get the equal to work with a hard coded event:


    Settings for sending notifications, optional.
      emailEnabled - true or false; default to true.
      smtpServer - SMTP server name; default to settings in TFS.
      fromAddress - notification sender address; default to settings in TFS.
      xslSearchPath - location of XSL transforms; default to TFSJobAgent\Transforms folder.
    <alertSettings />

      Alert settings.
        name - descriptive name for the alert.
        event - the type of event subscribed to.
        filterExpression - expression to filter event data.
        name="Notify Bug Work Item Changes"
   filterExpression="$&quot;PortfolioProject&quot; = 'Test General template' AND&quot;CoreFields/StringFields/Field[ReferenceName='System.State']/NewValue&quot;='Ready for QA Testing'">

I can't seem to get it to fire when I change an item to the state of ready for QA testing. What am I doing wrong?

Sep 18, 2012 at 8:57 PM

I figured out what I did wrong I was missing the $ after the AND and before the variable. &quot;CoreFields/StringFields/Field[ReferenceName='System.State']/NewValue&quot