使用 Azure DevOps 迁移工具迁移工作项和更改区域路径

Migrate workitems and change area path using Azure DevOps Migration Tools

我正在尝试从一个大型团队项目中迁移工作项,我想将其拆分为几个较小的团队项目。
区域和迭代结构如下所示:

源项目

所以在这种情况下,我想迁移团队 3。 当我 运行 我的迁移时,区域树看起来像这样

如何从目标树中删除“sourceproject”节点?

我尝试了不同的字段映射,但它们只影响字段而不影响树。

我的配置看起来像这样

  "$type": "WorkItemMigrationConfig",  
      "Enabled": true,  
      "ReplayRevisions": true,  
      "PrefixProjectToNodes": true,
      "UpdateCreatedDate": true,
      "UpdateCreatedBy": true,
      "BuildFieldTable": false,
      "AppendMigrationToolSignatureFooter": false,
      "WIQLQueryBit": "AND [System.AreaPath] UNDER 'sourceproject\unit 3' AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan')",
      "WIQLOrderBit": "[System.ChangedDate] desc",
      "LinkMigration": true,
      "AttachmentMigration": true,
      "AttachmentWorkingPath": "c:\temp\WorkItemAttachmentWorkingFolder\",
      "FixHtmlAttachmentLinks": false,
      "SkipToFinalRevisedWorkItemType": true,
      "WorkItemCreateRetryLimit": 5,
      "FilterWorkItemsThatAlreadyExistInTarget": false,
      "PauseAfterEachWorkItem": true,
      "AttachmentMaxSize": 480000000,
      "CollapseRevisions": false,
      "LinkMigrationSaveEachAsAdded": false,
      "GenerateMigrationComment": true,
      "NodeBasePaths": [
      "Sourceproject\Unit 3",
      "Sourceproject\Unit 3 sprint",

设置“PrefixProjectToNodes”: false,解决了我的问题。

那么“项目名称”将不会作为根节点出现。