RegexFieldMapConfig
Ref
Less than 1 minute to read
2024-09-06 09:35:04 +0100
draft
This page is in draft and may include errors or omissions. Please check the discussions for any pending updates and changes to the content or to suggest your own changes.
I just need that bit of a field… need to send “2016.2” to two fields, one for year and one for release? Done.
Options
Parameter name | Type | Description | Default Value |
pattern | String | missng XML code comments | missng XML code comments |
replacement | String | missng XML code comments | missng XML code comments |
sourceField | String | missng XML code comments | missng XML code comments |
targetField | String | missng XML code comments | missng XML code comments |
WorkItemTypeName | String | missng XML code comments | missng XML code comments |
Example
A basic sample for RegexFieldMapConfig configuration.
1
2
3
4
5
6
7
8
{
"$type": "RegexFieldMapConfig",
"WorkItemTypeName": "*",
"sourceField": "Custom.MyVersion",
"targetField": "Custom.MyVersionYearOnly",
"pattern": "([0-9]{4})",
"replacement": "$1"
}