'Migrate Work Items from all the projects of one TFS Collection to a single project in ADO Organization

Actually my need is to migrate all the work items from TFS to ADO in Collection level. For example: my collection contains around 50 team projects. If we are running the migration script for each project, it takes lot of time to get completed and it is a hectic process. So, Is there any method to migrate all the work items from all the projects collectively in a single TFS collection to a single project in Azure DevOps.

like below example, Is there any specific syntax or template to migrate work items of all projects in a single Collection?

"Source": {
"$type": "TfsTeamProjectConfig",
"Collection": "https://tfs.corp.local/<<Organization_Name>>/",
"ReflectedWorkItemIDFieldName": "TfsMigrationTool.ReflectedWorkItemId",
"AllowCrossProjectLinking": false,
"AuthenticationMode": "AccessToken",
"PersonalAccessToken": "PAT-KEY-HERE",
"LanguageMaps": {
  "AreaPath": "Area",
  "IterationPath": "Iteration"
}
},

"Target": {

"$type": "TfsTeamProjectConfig",

"Collection": "https://dev.azure.com/<<Organization_Name>>/",

"Project": "<<Project_name>>",

"ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId",

"AllowCrossProjectLinking": false,

"AuthenticationMode": "AccessToken",

"PersonalAccessToken": "PAT-KEY-HERE",

"LanguageMaps": {

  "AreaPath": "Area",

  "IterationPath": "Iteration"

}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source