sunny123

Hello!

I'm trying to subscribe to WorkItemChanged Event for different fields. Iobserved that the alerts work for inbuilt fields but not for the new fields I create.

Example, the following doesn't send any email alerts:

BisSubscribe /eventType workItemChangedEvent /address #mygroup@mycompany.com /deliveryType EmailHtml /server appserver /filter "\"PortfolioProject\" = 'MyTeamProject' AND (\"CoreFields/StringFields/Field[ReferenceName='MyCompany.TFS.BuildAndDeploy']/NewValue\" = 'Requested')"

The following sends email alerts:

BisSubscribe /eventType workItemChangedEvent /address #mygroup@mycompany.com /deliveryType EmailHtml /server appserver /filter "\"PortfolioProject\" = 'MyTeamProject' AND (\"CoreFields/StringFields/Field[ReferenceName='System.AssignedTo']/NewValue\" = 'DBA')"

Please assist me so I can send alerts in the first case too.

Thank you!



Re: Team Foundation Server - Work Item Tracking Bisubscribe not working for custom fields

Naren Datha - MSFT

In V1, the events get the values of custom fields only when they change. So if a custom field does not change in a revision then it won't be caught by the events. This is a limitation in V1.






Re: Team Foundation Server - Work Item Tracking Bisubscribe not working for custom fields

Tiago Pascoal

Custom fields are not present in the CoreFields element but in the ChangedFields element

Please try

BisSubscribe /eventType workItemChangedEvent /address #mygroup@mycompany.com /deliveryType EmailHtml /server appserver /filter "\"PortfolioProject\" = 'MyTeamProject' AND (\"ChangedFields/StringFields/Field[ReferenceName='MyCompany.TFS.BuildAndDeploy']/NewValue\" = 'Requested')"