Azure devops 错误:找不到工作项类型产品待办事项项
修复:原来我必须将项目更改为包含ReflectedWorkItemId的InheritedProcess才能工作。我的迁移刚刚开始。谢谢你的帮助 请把这个关上 我正在尝试使用这个迁移工具来测试迁移。我有一个源项目和目标项目。在ADO上和在同一组织中。我在SCRUM流程的继承流程下为我的组织创建了字段“ReflectedWorkItemId”,如下所示: 我得到的错误是:Azure devops 错误:找不到工作项类型产品待办事项项,azure-devops,azure-devops-server,azure-devops-migration-tools,vsts-sync-migrator,Azure Devops,Azure Devops Server,Azure Devops Migration Tools,Vsts Sync Migrator,修复:原来我必须将项目更改为包含ReflectedWorkItemId的InheritedProcess才能工作。我的迁移刚刚开始。谢谢你的帮助 请把这个关上 我正在尝试使用这个迁移工具来测试迁移。我有一个源项目和目标项目。在ADO上和在同一组织中。我在SCRUM流程的继承流程下为我的组织创建了字段“ReflectedWorkItemId”,如下所示: 我得到的错误是: [12:08:55 INF] !! After removing all found work items there ar
[12:08:55 INF] !! After removing all found work items there are 134 remaining to be migrated.
[12:08:55 WRN] ValidatingRequiredField: Task does not contain ReflectedWorkItemId
[12:08:55 FTL] Error while running WorkItemMigration
Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemTypeDeniedOrNotExistException: TF201077: The work item type Product Backlog Item cannot be found. It may have been renamed or destroyed.
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemTypeCollection.get_Item(String typeName)
at MigrationTools.ProcessorEnrichers.TfsValidateRequiredField.ValidatingRequiredField(String fieldToFind, List`1 sourceWorkItems) in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\ProcessorEnrichers\TfsValidateRequiredField.cs:line 44
at VstsSyncMigrator.Engine.WorkItemMigrationContext.InternalExecute() in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 122
at MigrationTools._EngineV1.Processors.MigrationProcessorBase.Execute() in D:\a\1\s\src\MigrationTools\_EngineV1\Processors\MigrationProcessorBase.cs:line 47
[12:08:55 ERR] WorkItemMigration The Processor MigrationEngine entered the failed state...stopping run
[12:08:55 INF] Application is shutting down...
[12:08:55 INF] Terminating: Application forcebly closed.
[12:08:55 INF] Application Ending
[12:08:55 INF] The application ran in 00:00:34.4484023 and finished at 02/19/2021 12:08:55
我的JSON如下所示:
{
"ChangeSetMappingFile": null,
"Source": {
"$type": "TfsTeamProjectConfig",
"Collection": "https://dev.azure.com/REDACTED/",
"Project": "SingularPOC",
"ReflectedWorkItemIDFieldName": "ReflectedWorkItemId",
"AllowCrossProjectLinking": false,
"AuthenticationMode": "Prompt",
"PersonalAccessToken": "",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
}
},
"Target": {
"$type": "TfsTeamProjectConfig",
"Collection": "https://dev.azure.com/REDACTED/",
"Project": "TargetPOC",
"ReflectedWorkItemIDFieldName": "ReflectedWorkItemId",
"AllowCrossProjectLinking": false,
"AuthenticationMode": "Prompt",
"PersonalAccessToken": "",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
}
},
"FieldMaps": [
{
"$type": "MultiValueConditionalMapConfig",
"WorkItemTypeName": "*",
"sourceFieldsAndValues": {
"Field1": "Value1",
"Field2": "Value2"
},
"targetFieldsAndValues": {
"Field1": "Value1",
"Field2": "Value2"
}
},
{
"$type": "FieldBlankMapConfig",
"WorkItemTypeName": "*",
"targetField": "TfsMigrationTool.ReflectedWorkItemId"
},
{
"$type": "FieldValueMapConfig",
"WorkItemTypeName": "*",
"sourceField": "System.State",
"targetField": "System.State",
"defaultValue": "New",
"valueMapping": {
"Approved": "New",
"New": "New",
"Committed": "Active",
"In Progress": "Active",
"To Do": "New",
"Done": "Closed",
"Removed": "Removed"
}
},
{
"$type": "FieldtoFieldMapConfig",
"WorkItemTypeName": "*",
"sourceField": "Microsoft.VSTS.Common.BacklogPriority",
"targetField": "Microsoft.VSTS.Common.StackRank",
"defaultValue": null
},
{
"$type": "FieldtoFieldMultiMapConfig",
"WorkItemTypeName": "*",
"SourceToTargetMappings": {
"SourceField1": "TargetField1",
"SourceField2": "TargetField2"
}
},
{
"$type": "FieldtoTagMapConfig",
"WorkItemTypeName": "*",
"sourceField": "System.State",
"formatExpression": "ScrumState:{0}"
},
{
"$type": "FieldMergeMapConfig",
"WorkItemTypeName": "*",
"sourceField1": "System.Description",
"sourceField2": "Microsoft.VSTS.Common.AcceptanceCriteria",
"targetField": "System.Description",
"formatExpression": "{0} <br/><br/><h3>Acceptance Criteria</h3>{1}",
"doneMatch": "##DONE##"
},
{
"$type": "RegexFieldMapConfig",
"WorkItemTypeName": "*",
"sourceField": "COMPANY.PRODUCT.Release",
"targetField": "COMPANY.DEVISION.MinorReleaseVersion",
"pattern": "PRODUCT \\d{4}.(\\d{1})",
"replacement": "$1"
},
{
"$type": "FieldValuetoTagMapConfig",
"WorkItemTypeName": "*",
"sourceField": "Microsoft.VSTS.CMMI.Blocked",
"pattern": "Yes",
"formatExpression": "{0}"
},
{
"$type": "TreeToTagMapConfig",
"WorkItemTypeName": "*",
"toSkip": 3,
"timeTravel": 1
}
],
"GitRepoMapping": null,
"LogLevel": "Information",
"Processors": [
{
"$type": "WorkItemMigrationConfig",
"Enabled": true,
"ReplayRevisions": true,
"PrefixProjectToNodes": false,
"UpdateCreatedDate": true,
"UpdateCreatedBy": true,
"BuildFieldTable": false,
"AppendMigrationToolSignatureFooter": false,
"WIQLQueryBit": "AND [Microsoft.VSTS.Common.ClosedDate] = '' 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": true,
"PauseAfterEachWorkItem": false,
"AttachmentMaxSize": 480000000,
"CollapseRevisions": false,
"LinkMigrationSaveEachAsAdded": false,
"GenerateMigrationComment": true,
"NodeBasePaths": [
"Product\\Area\\Path1",
"Product\\Area\\Path2"
],
"WorkItemIDs": null
}
],
"Version": "11.9",
"workaroundForQuerySOAPBugEnabled": false,
"WorkItemTypeDefinition": {
"sourceWorkItemTypeName": "targetWorkItemTypeName"
},
"Endpoints": {
"InMemoryWorkItemEndpoints": [
{
"Name": "Source",
"EndpointEnrichers": null
},
{
"Name": "Target",
"EndpointEnrichers": null
}
]
}
}
{
“ChangeSetMappingFile”:空,
“来源”:{
“$type”:“tfstreamprojectconfig”,
“收藏”:https://dev.azure.com/REDACTED/",
“项目”:“SingularPOC”,
“ReflectedWorkItemIDFieldName”:“ReflectedWorkItemId”,
“AllowCrossProjectLinking”:false,
“AuthenticationMode”:“Prompt”,
“PersonalAccessToken”:“,
“语言地图”:{
“区域路径”:“区域”,
“迭代路径”:“迭代”
}
},
“目标”:{
“$type”:“tfstreamprojectconfig”,
“收藏”:https://dev.azure.com/REDACTED/",
“项目”:“TargetPOC”,
“ReflectedWorkItemIDFieldName”:“ReflectedWorkItemId”,
“AllowCrossProjectLinking”:false,
“AuthenticationMode”:“Prompt”,
“PersonalAccessToken”:“,
“语言地图”:{
“区域路径”:“区域”,
“迭代路径”:“迭代”
}
},
“现场地图”:[
{
“$type”:“多值条件配置”,
“WorkItemTypeName”:“*”,
“sourceFieldsAndValues”:{
“字段1”:“值1”,
“字段2”:“值2”
},
“targetFieldsAndValues”:{
“字段1”:“值1”,
“字段2”:“值2”
}
},
{
“$type”:“FieldBlankMapConfig”,
“WorkItemTypeName”:“*”,
“targetField”:“TfsMigrationTool.ReflectedWorkItemId”
},
{
“$type”:“FieldValueMapConfig”,
“WorkItemTypeName”:“*”,
“sourceField”:“System.State”,
“targetField”:“System.State”,
“defaultValue”:“新建”,
“valueMapping”:{
“批准”:“新”,
“新”:“新”,
“已提交”:“活动”,
“进行中”:“活动中”,
“待办事项”:“新增”,
“完成”:“关闭”,
“已删除”:“已删除”
}
},
{
“$type”:“FieldtoFieldMapConfig”,
“WorkItemTypeName”:“*”,
“sourceField”:“Microsoft.VSTS.Common.BacklogPriority”,
“targetField”:“Microsoft.VSTS.Common.StackRank”,
“defaultValue”:空
},
{
“$type”:“FieldtoFieldMultiMapConfig”,
“WorkItemTypeName”:“*”,
“SourceToTargetMappings”:{
“SourceField1”:“TargetField1”,
“SourceField2”:“TargetField2”
}
},
{
“$type”:“FieldtoTagMapConfig”,
“WorkItemTypeName”:“*”,
“sourceField”:“System.State”,
formatExpression:“ScrumState:{0}”
},
{
“$type”:“FieldMergeMapConfig”,
“WorkItemTypeName”:“*”,
“sourceField1”:“System.Description”,
“sourceField2”:“Microsoft.VSTS.Common.AcceptanceCriteria”,
“targetField”:“System.Description”,
“formatExpression”:“{0}
接受标准{1}”,
“完成匹配”:“完成”
},
{
“$type”:“RegexFieldMapConfig”,
“WorkItemTypeName”:“*”,
“源字段”:“公司.产品.发布”,
“targetField”:“公司、部门、最低收入转移”,
“模式”:“产品\\d{4}.(\\d{1})”,
“替换”:“$1”
},
{
“$type”:“FieldValuetoTagMapConfig”,
“WorkItemTypeName”:“*”,
“sourceField”:“Microsoft.VSTS.CMMI.Blocked”,
“模式”:“是”,
formatExpression:“{0}”
},
{
“$type”:“TreeToTagMapConfig”,
“WorkItemTypeName”:“*”,
"托斯基":3,,
“时间旅行”:1
}
],
“GitRepoMapping”:null,
“日志级别”:“信息”,
“处理器”:[
{
“$type”:“WorkItemMigrationConfig”,
“启用”:正确,
“ReplayRevisions”:正确,
“PrefixProjectToNodes”:false,
“UpdateCreatedDate”:true,
“UpdateCreatedBy”:true,
“BuildFieldTable”:false,
“AppendMigrationToolSignatureFooter”:false,
“WIQLQueryBit”:“和[Microsoft.VSTS.Common.ClosedDate]=”和[System.WorkItemType]不在('Test Suite','Test Plan')”中,
“WIQLOrderBit”:“[System.ChangedDate]desc”,
“链接迁移”:没错,
“AttachmentMigration”:正确,
“AttachmentWorkingPath”:“c:\\temp\\WorkItemAttachmentWorkingFolder\\”,
“FixHtmlAttachmentLinks”:false,
“SkipToFinalReviedWorkItemType”:true,
“WorkItemCreateRetryLimit”:5,
“FilterWorkItemsThatAlreadyExistInTarget”:true,
“PauseAfterEachWorkItem”:false,
“AttachmentMaxSize”:48000000,
“折叠视觉”:错误,
“LinkMigrationSaveEachAsAdded”:false,
“世代移民评论”:没错,
“节点分离”:[
“产品\\区域\\路径1”,
“产品\\区域\\路径2”
],
“工作项ID”:空
}
],
“版本”:“11.9”,
“QuerySoapBugEnabled的变通方法”:false,
“工作项类型定义”:{
“sourceWorkItemTypeName”:“targetWorkItemTypeName”
},
“端点”:{
“InMemoryWorkItemEndpoints”:[
{
“名称”:“来源”,
“EndpointEnrichers”:空
},
{
“名称”:“目标”,
“EndpointEnrichers”:空
}
]
}
}
有人能给我指一下正确的方向吗?我已经验证了“任务”确实包含ReflectedWorkItemId,请检查您的项目流程类型,以确保它继承Scrum,否则产品积压项将不能作为项类型使用
检查项目过程以确保目标项目中存在ReflectedItemId字段。您说您创建了ReflectedWorkItemID(顺便说一句,我知道您用于此目的的工具:)-您在源项目和目标项目中都这样做了吗?还有,你的标题和内容不匹配-内容谈论的是反射作品