Warm tip: This article is reproduced from serverfault.com, please click

其他-使用Azure DevOps迁移工具迁移工作项并更改区域路径

(其他 - Migrate workitems and change area path using Azure DevOps Migration Tools)

发布于 2020-12-03 10:48:10

我正在尝试从一个大型teamproject迁移工作项,我想将其分解为几个较小的teamproject。
面积和迭代结构如下所示:

源项目

  • 第1单元(我不想迁移)
  • 第2单元(我不想迁移)
  • 单元3
    • A队
    • B队
      • 子节点...

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

  • 目的地项目
    • 源项目
      • 单元3
        • A队
        • B队
          • 子节点...

如何从目标树中删除“ 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",
Questioner
Stefan N
Viewed
0
Stefan N 2020-12-07 20:45:27

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

那么“项目名称”将不会显示为根节点。