Avoid being flooded by Azure Devops notifications - azure-devops

We have global notifications setup to send notification to work items assignees. But since there are many fields in these work items, users complain about receiving too many notifications.
We want to setup work item change notifications to be sent only when certain fields are updated, For eg. only on state and title change of a work item.
Is this possible in Azure Devops?

Yes, this is achievable in Azure devops. You only need to configure the filter criteria for the notification. See below example:
Navigate to the Organization Settings page-->Global notifications-->Statics tab-->Select the notification your team subscribed.
Then Edit the notification your team subscribed. Add the new clause in the filter criteria section to only send notification on the specific fields changes.
Check out document Manage notifications for a team, group, or organization for more information.

Related

Azure devop- subscription does not send email to me

I'm a tester and typically create bug in Azure devop. I want to receive an email on work items that were created by myself AND (comment is posted OR assign to any members) BUT it does not work if work item is changed to another person.
My subscription as following:
From your screenshot, you only define the History Changes in Notification.
The History field represents the Comment field in the work item. So no notification will be sent when the assign to changes.
To meet your requirements, you can add an filter: Assign To -> Changes and set the relationship as Or.
Here is an example:

Azure Devops Build Complete Notifications aren't firing

Azure DevOps "Build Complete" Notifications aren't firing when there is auto-trigger fires the build because of a commit in the bitbucket git repo. The build and release complete with no issues but the email notifications don't go to all at all to the team members. The end goal trying to achieve is to send an email to the administrator and the user who has checked the code in the bitbucket repo.
By reference to this doc: Supported subscriptions, we can subscribe notification of Build completed, as below. Thus only members of artifact-demo Team can receive notification which meet the filter criteria.
From your snapshot, it is out-of-the-box (OOB) or default subscriptions, and will send notifications to all subscribers, by default. Thus members of Dev Team can receive notification.
Therefore, if you have a CI pipeline for bitbucket repository, and want to send an email to the administrator and the user (we call it contributor) who has checked the code in the bitbucket repo via Azure DevOps notification service, please make sure that the administrator and the contributor are members of Dev team, so they will get build completed notification. Otherwise, they need to subscribe such notification via Personal notifications or Team notifications
Update>>If you want to only send notifications to the administrator and contributor, you could choose "Custom email address" and then set up multiple subsciptions.
Or the administrator and contributor can subscribe this notification via Personal notifications.
BTW, if some users doesn't want to receive such notifications, they can manually unsubscribe it.
Update2>>Using custom email address will send email to specific user. And if you have 20 members, there might be too many subscriptions, you could consider to add these 20 members to a new group/team(NotificatoinTeam), and then just need to subscribe this notification for this group and choose "Members of NotificatoinTeam", so everything is done. If there is new member wants to get this notification, just adds them to this group/team. Also if some members don't want to get this notification, just remove them from this NotificatoinTeam group/team.
Update3>>You could use this predefined variable Build.RequestedForEmail to get the contributor's email. See: Build variables (DevOps Services) for more details.

Azure DevOps Deployment Approval Notifications not delivered to Azure AD Security Group members

In Azure DevOps, I have few teams that consists of Azure AD groups (security groups not distribution groups) and few direct members. While sending an custom email to that team via say from Release Pipeline's "Send Email", the team is expanded and direct members and the members of AD Group get notified. In fact, the email is sent with everyone CCed. However, when the same team is notified via event notification e.g. deployment approval notification, only direct members get the email. As per docs this seems like a designed behavior but since it works for custom email, I was wondering if there is another setting somewhere. Troubleshooting with this doc doesn't work either as I don't see any new diagnostics logs.
Deployment Approval Notifications not delivered to Azure AD Security Group members
Based on my test, I could reproduce similar situation.
The root cause of this issue could be that the Azure AD security group in Azure Devops sets as Do not deliverby default. And it seems that we couldn't change it in Azure Devops.
For Office 365 type AAD Group, it could be set as deliver to the Email Address.
You could check it in Organization Settings -> Global notifications-> Subscribers.
The AAD Groups don't have the Deliver to individual members option. So when the notification is triggered, the notification couldn't work as expected.
This situation is similar to Scenario 1: A member with Do not deliver preference or Scenario 3: A nested group
Updates:
Here is a suggestion ticket about the feature request.

Is there any notification channel in azure-devops just for my project?

I have been searching for a notification channel in Azure Devops. Notification can be when a release happens, I want to send a custom mail to all the team members or when someone is working on some pipeline changes I want to display a message to the team members saying they might expect disruptions in using that pipeline. I saw message banners on top, which are organization wide and not for an individual project.
Any leads on a better notification channel?
In the Project Seetings, there's a Notifications setting which should be the one you are looking for.
You can see the usement in the doc Manage notifications for a team or group.
This allows you to custom your notifications when it should be sent and who would recieve the notifications.
You can set filter to a specific project when you create a custom notification:

How to trigger an event in VSTS when there is a state change

Am looking to create a trigger (A json payload to a server) when an User Story is changed to closed/resolved state.
I am following this documentation
How to trigger an event in VSTS when there is a state change
First, Azure Devops has capabilities to set up email notifications for the work Item. Check this the document Manage your notifications for some more details.
For you requirement, you could add a new subscription with following settings:
Then, if any User Story is changed to closed/resolved state, you will receive a e-mail about it.
Besides, if the trigger event is more than just a e-mail notification, like build. You could configure a service hook to send request to build related builds:
Check this thread for the details.
Hope this helps.