0

我使用了 10.2 的版本并面临以下问题之一

问题是,在 17 个任务工作项中,有 15 个即将到来,2 个任务未迁移,但在那个地方创建了两个没有标题和状态的产品积压项目,并带有新状态

  1. 这是我的配置文件:
{   "Version": "10.2",  
    "TelemetryEnableTrace": false,
    "workaroundForQuerySOAPBugEnabled": false,
    "ChangeSetMappingFile": null,
    "Source": {
        "Collection": "",
        "Project": "Road To NPD 3.0",
        "ReflectedWorkItemIDFieldName": "PATTInitiativesRefID",
        "AllowCrossProjectLinking": false,
        "PersonalAccessToken": "",
        "LanguageMaps": {
          "AreaPath": "Road To NPD 3.0",
          "IterationPath": "Road To NPD 3.0"
        }   },   "Target": {
        "Collection": "",
        "Project": "AS-Scrum-RoadToNPD3.0",
        "ReflectedWorkItemIDFieldName": "AutoSolScrumRefID",
        "AllowCrossProjectLinking": false,
        "PersonalAccessToken": "",
        "LanguageMaps": {
          "AreaPath": "AS-Scrum-RoadToNPD3.0",
          "IterationPath": "AS-Scrum-RoadToNPD3.0"    }   },   "FieldMaps": [
        {
          "ObjectType": "MultiValueConditionalMapConfig",
          "WorkItemTypeName": "*",
          "sourceFieldsAndValues": {
            "Field1": "Value1",
            "Field2": "Value2"
          },
          "targetFieldsAndValues": {
            "Field1": "Value1",
            "Field2": "Value2"
          }
        },
        {
          "ObjectType": "FieldBlankMapConfig",
          "WorkItemTypeName": "*",
          "targetField": "TfsMigrationTool.ReflectedWorkItemId"
        },
        {
          "ObjectType": "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"
          //}
        },
        {
          "ObjectType": "FieldtoFieldMapConfig",
          "WorkItemTypeName": "*",
          "sourceField": "Microsoft.VSTS.Common.BacklogPriority",
          "targetField": "Microsoft.VSTS.Common.StackRank",
          "defaultValue": null
        },
        {
          "ObjectType": "FieldtoFieldMultiMapConfig",
          "WorkItemTypeName": "*",
          "SourceToTargetMappings": {
            "SourceField1": "TargetField1",
            "SourceField2": "TargetField2"
          }
        },
        {
          "ObjectType": "FieldtoTagMapConfig",
          "WorkItemTypeName": "*",
          "sourceField": "System.State",
          "formatExpression": "ScrumState:{0}"
        },
        {
          "ObjectType": "FieldMergeMapConfig",
          "WorkItemTypeName": "*",
          "sourceField1": "System.Description",
          "sourceField2": "Microsoft.VSTS.Common.AcceptanceCriteria",
          "targetField": "System.Description",
          "formatExpression": "{0} <br/><br/><h3>Acceptance Criteria</h3>{1}",
          "doneMatch": "##DONE##"
        },
        {
          "ObjectType": "RegexFieldMapConfig",
          "WorkItemTypeName": "*",
          "sourceField": "COMPANY.PRODUCT.Release",
          "targetField": "COMPANY.DEVISION.MinorReleaseVersion",
          "pattern": "PRODUCT \\d{4}.(\\d{1})",
          "replacement": "$1"
        },
        {
          "ObjectType": "FieldValuetoTagMapConfig",
          "WorkItemTypeName": "*",
          "sourceField": "Microsoft.VSTS.CMMI.Blocked",
          "pattern": "Yes",
          "formatExpression": "{0}"
        },
        {
          "ObjectType": "TreeToTagMapConfig",
          "WorkItemTypeName": "*",
          "toSkip": 3,
          "timeTravel": 1    
        }   ],   "WorkItemTypeDefinition": {
        "Product Backlog Item": "Product Backlog Item",     "Epic": "Epic",     "Task": "Task"     },   "GitRepoMapping": null,   "Processors": [
        {
          "ObjectType": "NodeStructuresMigrationConfig",
          "PrefixProjectToNodes": false,
          "Enabled": false,
          "BasePaths": [
           "Product\\Area\\Path1",
          "Product\\Area\\Path2"
          ]
        },
        {
          "ObjectType": "WorkItemMigrationConfig",
          "ReplayRevisions": true,
          "PrefixProjectToNodes": false,
          "UpdateCreatedDate": true,
          "UpdateCreatedBy": true,
          "BuildFieldTable": false,
          "AppendMigrationToolSignatureFooter": false,
          "QueryBit": "AND  [Microsoft.VSTS.Common.ClosedDate] != '' AND [System.WorkItemType] IN ('Task')",
          "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,
          "LinkMigrationSaveEachAsAdded": false
        }   ] }
4

1 回答 1

0

此问题是由于某些代码故障导致更改工作项类型,这在旧对象模型中是不可能的。有些人对此有疑问,因此SkipToFinalRevisedWorkItemType可以添加它以查看最后一个修订的类型并使用它,而不是试图在两者之间搞乱。

{
          "ObjectType": "WorkItemMigrationConfig",
          "ReplayRevisions": true,
          "PrefixProjectToNodes": false,
          "UpdateCreatedDate": true,
          "UpdateCreatedBy": true,
          "BuildFieldTable": false,
          "AppendMigrationToolSignatureFooter": false,
          "QueryBit": "AND  [Microsoft.VSTS.Common.ClosedDate] != '' AND [System.WorkItemType] IN ('Task')",
          "OrderBit": "[System.ChangedDate] desc",
          "Enabled": true,
          "LinkMigration": true,
          "AttachmentMigration": true,
          "AttachmentWorkingPath": "c:\\temp\\WorkItemAttachmentWorkingFolder\\",
          "FixHtmlAttachmentLinks": false,
          "SkipToFinalRevisedWorkItemType": true,
          "WorkItemCreateRetryLimit": 5,
          "FilterWorkItemsThatAlreadyExistInTarget": true,
          "PauseAfterEachWorkItem": false,
          "AttachmentMazSize": 480000000,
          "CollapseRevisions": false,
          "LinkMigrationSaveEachAsAdded": false
        }   ] }

在这里,我更新"SkipToFinalRevisedWorkItemType"true而不是false.

于 2020-09-24T20:32:15.400 回答