azure - 使用 Azure DevOps 迁移工具迁移时有什么方法可以保留原始 Id 吗?

标签 azure azure-devops-migration-tools azure-migrate

我正在使用 Azure DevOps 迁移工具将我们的工作项从一个组织迁移到另一个组织。

ReflectedWorkItemIDFieldName 使用类似 https://dev.azure.com/myOldSite/MyProject/_workitems/edit/99 的值填充 ID_old。

我希望能够将 Id=xx 从 myOldSite 迁移到 Id=xx 从 myNewSite,但我无法找到将 Id 号从旧的 Azure DevOps 系统迁移到新的 Azure DevOps 系统的方法。

有什么想法吗?

我的configuration.json是

{
  "Version": "8.9",
  "TelemetryEnableTrace": false,
  "workaroundForQuerySOAPBugEnabled": false,
  "Source": {
    "Collection": "https://dev.azure.com/myOldSite/",
    "Project": "MyProject",
    "ReflectedWorkItemIDFieldName": "Id",
    "AllowCrossProjectLinking": false,
    "PersonalAccessToken": ""
  },
  "Target": {
    "Collection": "https://dev.azure.com/myNewSite/",
    "Project": "MyProject",
    "ReflectedWorkItemIDFieldName": "Custom.ID_old",
    "AllowCrossProjectLinking": false,
    "PersonalAccessToken": ""
  },
  "FieldMaps": [],
  "WorkItemTypeDefinition": {
    "sourceWorkItemTypeName": "targetWorkItemTypeName"
  },
  "GitRepoMapping": null,
  "Processors": [
    {
      "ObjectType": "VstsSyncMigrator.Engine.Configuration.Processing.NodeStructuresMigrationConfig",
      "PrefixProjectToNodes": false,
      "Enabled": true,
      "BasePaths": []
    },
    {
      "ObjectType": "VstsSyncMigrator.Engine.Configuration.Processing.WorkItemMigrationConfig",
      "ReplayRevisions": false,
      "PrefixProjectToNodes": false,
      "UpdateCreatedDate": true,
      "UpdateCreatedBy": true,
      "UpdateSourceReflectedId": false,
      "BuildFieldTable": false,
      "AppendMigrationToolSignatureFooter": false,
      "QueryBit": "AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan')",
      "OrderBit": "[System.ChangedDate] desc",
      "Enabled": true,
      "LinkMigration": true,
      "AttachmentMigration": true,
      "AttachmentWorkingPath": "c:\\temp\\WorkItemAttachmentWorkingFolder\\",
      "FixHtmlAttachmentLinks": false,
      "SkipToFinalRevisedWorkItemType": false,
      "WorkItemCreateRetryLimit": 5,
      "FilterWorkItemsThatAlreadyExistInTarget": true,
      "PauseAfterEachWorkItem": false,
      "AttachmentMazSize": 480000000,
      "CollapseRevisions": false
    }
  ]
}

最佳答案

没有。该 ID 是系统生成的,不能保证目标系统中的其他工作项尚未使用该 ID。

关于azure - 使用 Azure DevOps 迁移工具迁移时有什么方法可以保留原始 Id 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63192944/

相关文章:

azure - 为嵌套对象创建 Terraform 变量

api - Cosmos DB 的分区键

azure - 从 Azure 门户中测试 Web 聊天时,新机器人 channel 注册收到 403 禁止

azure - 如何从 Azure DevOps 服务迁移到 Azure DevOps Server

azure - 管道迁移是否有效 - 一直在使用它并收到错误没有名为该端点或同名的重复端点

Azure 资源移动器失败,但资源已移动

azure - 通过 Azure DevOps 迁移工具运行迁移的管道时出现 "No spool was specified"错误

azure - 使用 AzCopy 在 Azure BLOB 容器之间复制文件时出现错误