You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance field mapping documentation with detailed descriptions, examples, and best practices
- Updated descriptions for Field To Field Multi Map, Field To Tag Field Map, Field Value Map, Multi Value Conditional Map, Regex Field Map, and Tree To Tag Field Map to provide clearer insights into their functionalities and use cases.
- Added comprehensive overviews and how-it-works sections for each field map to explain their processes and applications.
- Included multiple configuration examples for each field map to illustrate practical usage scenarios.
- Expanded sections on best practices, performance considerations, and troubleshooting tips to aid users in effective implementation.
- Improved formatting and organization of content for better readability and understanding.
- Made minor adjustments to the sample shortcode layout for consistency.
The Field Calculation Map is a specialised field map used in the Azure DevOps Migration Tools. It allows you to compute values dynamically during migration by applying mathematical or logical operations on numeric fields. Calculations are defined using NCalc expressions and can reference one or more source fields using named parameters.
5
-
6
-
This is especially useful for scenarios where derived values need to be migrated, such as calculating cost based on effort and rate, or generating summary fields that are not explicitly stored in the source system.
4
+
The Field Calculation Map performs mathematical calculations on numeric fields using NCalc expressions during work item migration. It allows you to compute values dynamically by applying mathematical or logical operations on source fields and storing the result in a target field.
The Field Calculation Map is a specialised field map used in the Azure DevOps Migration Tools. It allows you to compute values dynamically during migration by applying mathematical or logical operations on numeric fields. Calculations are defined using NCalc expressions and can reference one or more source fields using named parameters.
19
+
20
+
This is especially useful for scenarios where derived values need to be migrated, such as calculating cost based on effort and rate, or generating summary fields that are not explicitly stored in the source system.
21
+
22
+
## How It Works
23
+
24
+
During work item processing, the Field Calculation Map:
21
25
22
-
This map is typically used when:
26
+
1.**Validates Configuration**: Ensures the expression, target field, and parameter mappings are properly configured
27
+
2.**Collects Source Values**: Retrieves values from all source fields specified in the parameters dictionary
28
+
3.**Validates Field Values**: Confirms that all source fields exist and contain numeric values
29
+
4.**Evaluates Expression**: Executes the NCalc expression using the collected field values as parameters
30
+
5.**Converts Result**: Automatically converts the calculation result to match the target field's data type
31
+
6.**Sets Target Field**: Assigns the calculated value to the specified target field
23
32
24
-
- You want to calculate **Custom.EstimatedCost** as `EstimatedHours × HourlyRate`
25
-
- You need to **convert days to hours** or apply rounding
26
-
- You wish to **assign weights** to different numeric fields and store a computed score
27
-
- Your source project uses **different naming or units**, and you want to normalise during migration
33
+
## Use Cases
28
34
29
-
## Options
35
+
This field map is commonly used for:
36
+
37
+
-**Cost Calculations**: Computing `Custom.EstimatedCost` as `EstimatedHours × HourlyRate`
38
+
-**Unit Conversions**: Converting days to hours, points to hours, or other unit transformations
39
+
-**Weighted Scoring**: Applying weights to different numeric fields and storing computed scores
40
+
-**Mathematical Transformations**: Applying formulas, rounding, or mathematical functions to field values
41
+
-**Derived Metrics**: Creating calculated fields that combine multiple source values
0 commit comments