-1

我们目前正在使用https://nkdagility.github.io/azure-devops-migration-tools/工具在 Azure Devops 组织之间移动多个项目。

许多正在迁移的工作项都有指向同一组织内另一个项目的 git repos(提交、分支)的链接。当工具运行时,如果它在另一个项目中,它无法找到 repo。

工具运行时的示例警告:

GitRepositoryEnricher:找不到源 git 存储库 - 引用的存储库:xy/mn

在具有此链接的工作项的开发部分下,以下评论显示:

未找到提交或没有访问它的权限。

所有存储库都已在工作项之前迁移,并且与源组织中的名称相同。我不认为这是权限问题,因为我可以手动添加链接。

下面是配置 json 文件:

{
  "ChangeSetMappingFile": null,
  "Source": {
    "$type": "TfsTeamProjectConfig",
    "Collection": "https://dev.azure.com/sourceorg/",
    "Project": "sourceproject",
    "ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId",
    "AllowCrossProjectLinking": true,
    "AuthenticationMode": "Prompt",
    "PersonalAccessToken": "PAT",
    "LanguageMaps": {
      "AreaPath": "Area",
      "IterationPath": "Iteration"
    }
  },
  "Target": {
    "$type": "TfsTeamProjectConfig",
    "Collection": "https://dev.azure.com/targetorg/",
    "Project": "targetproject",
    "ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId",
    "AllowCrossProjectLinking": true,
    "AuthenticationMode": "Prompt",
    "PersonalAccessToken": "",
    "LanguageMaps": {
      "AreaPath": "Area",
      "IterationPath": "Iteration"
    }
  },
  "FieldMaps": [],
  "GitRepoMapping": null,
  "LogLevel": "Information",
    "Processors": [
    {
      "$type": "WorkItemMigrationConfig",
      "Enabled": true,
      "ReplayRevisions": true,
      "PrefixProjectToNodes": false,
      "UpdateCreatedDate": true,
      "UpdateCreatedBy": true,
      "WIQLQueryBit": "AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan', 'Test Case')",
      "WIQLOrderBit": "[System.ChangedDate] desc",
      "LinkMigration": true,
      "AttachmentMigration": true,
      "AttachmentWorkingPath": "c:\\temp\\WorkItemAttachmentWorkingFolder\\",
      "FixHtmlAttachmentLinks": true,
      "SkipToFinalRevisedWorkItemType": true,
      "WorkItemCreateRetryLimit": 5,
      "FilterWorkItemsThatAlreadyExistInTarget": false,
      "PauseAfterEachWorkItem": false,
      "AttachmentMaxSize": 480000000,
      "AttachRevisionHistory": false,
      "LinkMigrationSaveEachAsAdded": false,
      "GenerateMigrationComment": false,
      "NodeBasePaths": [],
      "WorkItemIDs": null
    }
  ],

  "Version": "11.11",
  "workaroundForQuerySOAPBugEnabled": false,
  "WorkItemTypeDefinition": {
    "sourceWorkItemTypeName": "targetWorkItemTypeName"
  }
}
4

1 回答 1

0

策略必须平等开放以允许链接,两个项目(以及组织)必须是同一租户的一部分。

于 2022-02-21T05:36:07.963 回答