Alert when a person other than AssignedTo alters a Work Item

Jan 27, 2015 at 6:46 AM

I try to create an alert, when a bug item ist changed by a person different from AssignedTo.
The filter expression I wrote:
filterExpression="($"CoreFields/StringFields/Field[ReferenceName='System.WorkItemType']/NewValue" = 'Bug')
                  AND NOT ($"ChangedFields/StringFields/Field[ReferenceName='System.ChangedBy']/NewValue" = $"CoreFields/StringFields/Field[ReferenceName='System.AssignedTo']/NewValue")">
I read this thread first:
and tried to implement the conclusion of it in my filterExpression. I tried several alternatives from using OldValue instead of NewValue to using CoreFields instead of ChangedFields. But it still won't work.

I get an eMail every time the bug is changed regardless of if it was changed by myself or someone else.

Has anyone got an idea about this?

Thank you very much.

P.S.: We are still using TFS2010 with VS2010.