Replies: 1 comment 2 replies
-
Correct. this is not the tool for that job. Use the StringManipulatorTool instead!
You can add multiple manipulators or create one uber pattern... there is also a fix in the latest preview to enable you to override the default rather than merge it in... note that the Tfs Object Model does not support some characters... note: The workaround is to change the appsettings.json and remove the default manipulator if you don't have the version with the fix. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to replace "invalid characters" so they can be saved in paragraph fields like description. Below is a snipit of a V1 configuration with character maps. If only one of the characters is present then the mapping works fine. If multiple characters are present it does not work and logging seems to indicate that each mapping starts with the original source data to do the mapping, meaning only the last found mapping takes affect.
Can multiple mappings be done on a single field?
Can multiple fields use the same mapping (i.e. have multiple source fields and targetfields) with repeating the configuration for each field?
"FieldMaps": [
{
"$type": "RegexFieldMapConfig",
"WorkItemTypeName": "",
"sourceField": "System.Description",
"targetField": "System.Description",
"pattern": "\uFFFF",
"replacement": "U+FFFF"
},
{
"$type": "RegexFieldMapConfig",
"WorkItemTypeName": "",
"sourceField": "System.Description",
"targetField": "System.Description",
"pattern": "\uF1A4",
"replacement": "U+F1A4"
},
{
"$type": "RegexFieldMapConfig",
"WorkItemTypeName": "*",
"sourceField": "System.Description",
"targetField": "System.Description",
"pattern": "\uF210",
"replacement": "U+F210"
},
Beta Was this translation helpful? Give feedback.
All reactions