Skip to content

[Bug]: TargetToTarget dosn't transferred Value from Microsoft.VSTS.Build.IntegrationBuild to Custom.ReflectedWorkItemId #2998

@DanielCAS349

Description

@DanielCAS349

Version

  • I confirm that I am using the latest version

Source Version

Azure DevOps Server 2022

Target Version

Azure DevOps Service

Relevant configuration

{
  "Serilog": {
    "MinimumLevel": "Debug"
  },
  "MigrationTools": {
    "Version": "16.0",
	"CommonTools": {
	"TfsWorkItemTypeValidatorTool": {
        "Enabled": false,
        "ExcludeDefaultWorkItemTypes": true
      },
	  "FieldMappingTool": {
        "Enabled": true,
        "FieldMaps": [
		  {
		 "FieldMapType": "FieldToFieldMap",
		 "fieldMapMode": "TargetToTarget",
            "sourceField": "Microsoft.VSTS.Build.IntegrationBuild",
            "targetField": "Custom.ReflectedWorkItemId",
            "defaultValue": "",
            "ApplyTo": ["Test Case"]
          }
		  ]
	  },
      "TfsRevisionManagerTool": {
        "Enabled": true,
        "MaxRevisions": 50,
        "ReplayRevisions": true
      }
	 },
    "Endpoints": {
      "TFS": {
        "EndpointType": "TfsTeamProjectEndpoint",
        "Collection": "*",
        "Project": "*",
        "Authentication": {
          "AuthenticationMode": "AccessToken",
          "AccessToken": "*"
        },
		"AllowUntrustedCertificates": true,
        "LanguageMaps": {
          "AreaPath": "Area",
          "IterationPath": "Iteration"
        }
      },
      "Portal": {
        "EndpointType": "TfsTeamProjectEndpoint",
        "Collection": "*",
        "Project": "*",
        "Authentication": {
          "AuthenticationMode": "AccessToken",
          "AccessToken": "*"
        },
        "ReflectedWorkItemIdField": "Microsoft.VSTS.Build.IntegrationBuild",
        "LanguageMaps": {
          "AreaPath": "Area",
          "IterationPath": "Iteration"
        }
      }
    },
	
    "Processors": [
      {
        "ProcessorType": "TfsWorkItemMigrationProcessor",
        "Enabled": true,
		"SourceName": "TFS",
		"TargetName": "Portal",
		"WIQLQuery": "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.WorkItemType] IN ('Test Case','Shared Steps','Shared Parameter') AND [SYSTEM.Id] >= 11158 AND [SYSTEM.ID] <= 11158 ORDER BY [System.ChangedDate] desc"
      }
    ]
  }
}

Relevant log output

[16:22:38 DBG] [16.3.2-Preview.2] NodeStructureEnricher.GetNewNodeName::Mappers 
[16:22:38 DBG] [16.3.2-Preview.2] Running Field Map: FieldToFieldMap Microsoft.VSTS.Build.IntegrationBuild ReflectedWorkItemId 
[16:22:38 DBG] [16.3.2-Preview.2] FieldToFieldMap: [UPDATE] Successfully mapped field Microsoft.VSTS.Build.IntegrationBuild to ReflectedWorkItemId with value '' using mode "TargetToTarget" | Source WorkItem: 11158 -> Target WorkItem: 52728

What happened?

Hey all

As mentioned in the Guides "https://devopsmigration.io/docs/how-to/migrating-plans-and-suites/"

I did the Procedure with the TargetToTarget Mapping (Used the v16.3.2-Preview.2) because it had the Feature that was written in the Documentation.

It works in my Test perfect with PBI as Example but with the Workitem "Test Case" the Value from the Field
Microsoft.VSTS.Build.IntegrationBuild is not transferred to Custom.ReflectedWorkItemId for Test Cases

My Test Runs where:

Microsoft.VSTS.Build.IntegrationBuild to Custom.ReflectedWorkItemId
Microsoft.VSTS.Build.IntegrationBuild to ReflectedWorkItemId

The Log is from the last run with the same Result

Do you have any clue whats wrong?

Image

Debug in Visual Studio

  • Visual Studio Debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions