Azure DevOps Migration Tools

v16.2.1

Azure DevOps Migration Tools allow you to migrate Teams, Backlogs, Tasks, Test Cases, and Plans & Suites from one Project to another in Azure DevOps / TFS both within the same Organisation, and between Organisations.

Home
 › 
Learn
 › 
Overview
 › 
Reference
 › 
Fieldmaps
 › 
Fieldtofieldmap
Overview

FieldMaps : FieldToFieldMap

Ref

  

Less than 1 minute to read

  

2025-06-19 13:46:05 +0000

Maps the value from a source field to a target field directly, with optional default value substitution for empty or null values.

Options

Parameter name Type Description Default Value
ApplyTo List A list of Work Item Types that this Field Map will apply to. If the list is empty it will apply to all Work Item Types. You can use "*" to apply to all Work Item Types. missing XML code comments
defaultValue String Gets or sets the default value to use when the source field is empty or null. missing XML code comments
sourceField String Gets or sets the name of the source field to copy data from during migration. missing XML code comments
targetField String Gets or sets the name of the target field to copy data to during migration. missing XML code comments

Examples

sample

This is an example of what your config might look like once configured.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    {
  "MigrationTools": {
    "Version": "16.0",
    "CommonTools": {
      "FieldMappingTool": {
        "FieldMaps": [
          {
            "FieldMapType": "FieldToFieldMap",
            "ApplyTo": [
              "SomeWorkItemType"
            ],
            "defaultValue": "42",
            "sourceField": "Microsoft.VSTS.Common.BacklogPriority",
            "targetField": "Microsoft.VSTS.Common.StackRank"
          }
        ]
      }
    }
  }
}
    

defaults

These are the default values for this configuration. If you do not set it in your config the default always applies. You can overide by adding a diferent value in your config.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    {
  "MigrationTools": {
    "Version": "16.0",
    "CommonTools": {
      "FieldMappingTool": {
        "FieldMaps": [
          {
            "FieldMapType": "FieldToFieldMap",
            "ApplyTo": [
              "*"
            ]
          }
        ]
      }
    }
  }
}
    

classic

We have moved to a new config format, and you will need to update your old configs. This entry is a strate seralisation of the object and is here for legacy, and may provide value for debugging issues.

1
2
3
4
5
6
7
8
9
10
11
    {
  "$type": "FieldToFieldMapOptions",
  "sourceField": "Microsoft.VSTS.Common.BacklogPriority",
  "targetField": "Microsoft.VSTS.Common.StackRank",
  "defaultValue": "42",
  "ApplyTo": [
    "*",
    "SomeWorkItemType"
  ]
}
    

...
Getting Support

Community Support

Question & Discussion - The first place to look for usage, configuration, and general help.

Commercial Support

We provide training, ad-hoc support, and full service migrations through Azure DevOps Migration Services