Azure DevOps Migration Tools

v16.0.9

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

Home
 › 
Learn
 › 
Overview
 › 
Reference
 › 
Tools
 › 
Stringmanipulatortool
Overview

Tools : StringManipulatorTool

Ref

  

Less than 1 minute to read

  

2024-12-04 17:20:47 +0000

Used to process the String fields of a work item. This is useful for cleaning up data. It will limit fields to a max length and apply regex replacements based on what is configured. Each regex replacement is applied in order and can be enabled or disabled.

Options

Parameter name Type Description Default Value
Enabled Boolean If set to `true` then the tool will run. Set to `false` and the processor will not run. missing XML code comments
Manipulators List List of regex based string manipulations to apply to all string fields. Each regex replacement is applied in order and can be enabled or disabled. {}
MaxStringLength Int32 Max number of chars in a string. Applied last, and set to 1000000 by default. 1000000

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": {
      "StringManipulatorTool": {
        "Enabled": "True",
        "Manipulators": [
          {
            "$type": "RegexStringManipulator",
            "Description": "Remove invalid characters from the end of the string",
            "Enabled": "True",
            "Pattern": "[^( -~)\n\r\t]+",
            "Replacement": ""
          }
        ],
        "MaxStringLength": "1000000"
      }
    }
  }
}
    

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
    {
  "MigrationTools": {
    "Version": "16.0",
    "CommonTools": {
      "StringManipulatorTool": {
        "Enabled": "True",
        "Manipulators": null,
        "MaxStringLength": "1000000"
      }
    }
  }
}
    

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
12
13
14
    {
  "$type": "StringManipulatorToolOptions",
  "Enabled": true,
  "MaxStringLength": 1000000,
  "Manipulators": [
    {
      "Enabled": true,
      "Pattern": "[^( -~)\n\r\t]+",
      "Replacement": "",
      "Description": "Remove invalid characters from the end of the string"
    }
  ]
}
    

...
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