Is there any way to turn off the mail notifications to users while migrating the work items #2610
Replies: 3 comments 2 replies
-
To turn off notifications in Azure DevOps during a migration, you can either disable all notifications at the project level or suspend specific subscriptions. Here's how: Option 1: Disable All Notifications for a Project
Option 2: Temporarily Disable Notification SubscriptionsIf you only want to disable specific notifications:
Option 3: Use PowerShell to Bulk Disable NotificationsIf you are doing multiple migrations and want to automate disabling notifications, use Azure DevOps REST API: PowerShell Script to Disable Notifications$OrgName = "your-org-name"
$ProjectName = "your-project-name"
$PAT = "your-personal-access-token"
$Headers = @{
"Authorization" = "Basic " + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(":$PAT"))
"Content-Type" = "application/json"
}
# Get all subscriptions
$subscriptionsUrl = "https://dev.azure.com/$OrgName/_apis/notification/subscriptions?api-version=7.1-preview.1"
$subscriptions = Invoke-RestMethod -Uri $subscriptionsUrl -Headers $Headers -Method Get
# Disable all subscriptions for the project
foreach ($sub in $subscriptions.value) {
if ($sub.scope.type -eq "Project" -and $sub.scope.name -eq $ProjectName) {
$disableUrl = "https://dev.azure.com/$OrgName/_apis/notification/subscriptions/$($sub.id)?api-version=7.1-preview.1"
$body = @{ "status" = "Disabled" } | ConvertTo-Json -Depth 2
Invoke-RestMethod -Uri $disableUrl -Headers $Headers -Method Patch -Body $body
Write-Output "Disabled subscription: $($sub.id) - $($sub.description)"
}
} 🔹 Notes:
Re-enabling Notifications After Migration
Would you like help refining this for a specific migration scenario? 🚀 |
Beta Was this translation helpful? Give feedback.
-
@MrHinsh using the Azure DevOps Migration tool it self can we do anything in the configuration file to stop those email notifications, because the Org which i am using have multiple projects and i might not have necessary permission to disable or enable those options it requires some leadership approval to get access and update those permissions |
Beta Was this translation helpful? Give feedback.
-
I have tried the option 2 and still i am seeing the mails while migrating the work items from One Project to another Project I have disabled this under Org Settings @MrHinsh Any other possible way.? because those email are spamming the mail boxes when we run the test migrations. And in my Project settings there is nothing related to Work Items under notifications |
Beta Was this translation helpful? Give feedback.
-
While migrating the ADO work items, we are observing continuous emails saying this work item has been assigned to you, it is spamming our mail box, is there an way to avoid those email notifications while migrating.
@MrHinsh need your assistance.
Beta Was this translation helpful? Give feedback.
All reactions