Search code examples
tfstfs-alerts

TFS Alert if change was made by users in a certain TFS Group / AD Group?


I am trying to set up an alert that will send me an email when someone who has Work Item Only View access creates/changes a Work Item.

I can create a query which returns me a list of Work Items which were created by WIOV users, by using 'Created By (In Group) "[TEAM FOUNDATION]\Work Item Only View Users"', or alternatively the AD Group which I created which controls which users have WIOV access.

But there does not appear to be an "In Group" operator in the Alerts Explorer.

Is there any other way to achieve this?


Solution

  • You can't check in an alert rule if a given user is a member of a group, so you won't be able to do that this way.

    Maybe the fallback would be to ask to your wiov users to create the work items and not assigning them to someone (let the assigned to field empty), then you could be able to create the alert that triggers when such Work Item is create.

    Note: you may have to change the definition of the Work Item to allow an empty "Assigned to" (depending of the Process Template you use).