TFS Validate Required Field Tool
Validates that required fields are properly configured and populated during migration to prevent work item creation failures in the target system.
Overview
The TFS Validate Required Field Tool validates that required fields are properly configured and populated during migration. This tool prevents work item creation failures by ensuring all mandatory fields have valid values before attempting to create work items in the target system.
The tool is essential for ensuring migration success by identifying and resolving field validation issues before they cause work item creation to fail.
topHow It Works
The TFS Validate Required Field Tool operates during work item migration validation:
- Field Analysis: Analyzes target work item types to identify required fields
- Value Validation: Validates that required fields have appropriate values
- Missing Field Detection: Identifies work items with missing required field values
- Default Value Application: Applies default values to required fields when configured
- Validation Reporting: Reports validation issues for manual resolution
The tool integrates with work item migration processors to ensure data quality before migration.
topUse Cases
Common scenarios where the TFS Validate Required Field Tool is essential:
- Migration Quality Assurance: Ensuring all work items will migrate successfully
- Required Field Compliance: Meeting target system field requirements
- Data Completeness: Identifying incomplete work item data before migration
- Process Template Differences: Handling different required fields between systems
- Migration Failure Prevention: Avoiding work item creation failures during migration
Configuration Structure
topOptions
topSample
There is no sample, but you can check the classic below for a general feel.
Defaults
There are no defaults! Check the sample for options!
Basic Examples
The TFS Validate Required Field Tool provides configuration options for field validation:
{
"TfsValidateRequiredFieldTool": {
"Enabled": true,
"ValidateRequiredFields": true,
"ApplyDefaultValues": true,
"RequiredFieldDefaultValues": {
"Microsoft.VSTS.Common.Priority": "2",
"Microsoft.VSTS.Common.Severity": "3 - Medium"
}
}
}
Complex Examples
topComprehensive Field Validation
Complete validation with multiple default values:
{
"TfsValidateRequiredFieldTool": {
"Enabled": true,
"ValidateRequiredFields": true,
"ApplyDefaultValues": true,
"RequiredFieldDefaultValues": {
"Microsoft.VSTS.Common.Priority": "2",
"Microsoft.VSTS.Common.Severity": "3 - Medium",
"Microsoft.VSTS.Common.Triage": "Pending",
"System.AreaPath": "DefaultProject\\General",
"System.IterationPath": "DefaultProject\\Iteration 1"
}
}
}
Validation Only Mode
Validate without applying defaults for reporting purposes:
{
"TfsValidateRequiredFieldTool": {
"Enabled": true,
"ValidateRequiredFields": true,
"ApplyDefaultValues": false,
"RequiredFieldDefaultValues": {}
}
}
Common Scenarios
topComplete Validation with Defaults
Validate and apply default values for missing required fields:
{
"TfsValidateRequiredFieldTool": {
"Enabled": true,
"ValidateRequiredFields": true,
"ApplyDefaultValues": true,
"RequiredFieldDefaultValues": {
"Microsoft.VSTS.Common.Priority": "2",
"Microsoft.VSTS.Common.Severity": "3 - Medium"
}
}
}
Priority and Severity Defaults
Configure defaults for common required fields:
{
"TfsValidateRequiredFieldTool": {
"Enabled": true,
"ValidateRequiredFields": true,
"ApplyDefaultValues": true,
"RequiredFieldDefaultValues": {
"Microsoft.VSTS.Common.Priority": "3",
"Microsoft.VSTS.Common.Severity": "4 - Low",
"Microsoft.VSTS.Common.BusinessValue": "0"
}
}
}
Path Field Validation
Ensure area and iteration path requirements are met:
{
"TfsValidateRequiredFieldTool": {
"Enabled": true,
"ValidateRequiredFields": true,
"ApplyDefaultValues": true,
"RequiredFieldDefaultValues": {
"System.AreaPath": "MigratedProject\\General",
"System.IterationPath": "MigratedProject\\Sprint 1"
}
}
}
Custom Field Defaults
Handle custom required fields with appropriate defaults:
{
"TfsValidateRequiredFieldTool": {
"Enabled": true,
"ValidateRequiredFields": true,
"ApplyDefaultValues": true,
"RequiredFieldDefaultValues": {
"Custom.Department": "IT",
"Custom.Customer": "Internal",
"Custom.Component": "General"
}
}
}
Good Practices
topField Validation Strategy
- Analyze Target Requirements: Understand target system required field requirements
- Map Field Differences: Identify differences in required fields between systems
- Default Value Selection: Choose appropriate default values that make business sense
- Testing Validation: Test validation rules with sample work items
Default Value Management
- Business Alignment: Ensure default values align with business processes
- Data Quality: Use meaningful defaults rather than placeholder values
- Stakeholder Input: Get stakeholder input on appropriate default values
- Documentation: Document default value choices and rationale
Configuration Management
- Environment Specific: Use environment-specific default values when appropriate
- Regular Review: Regularly review and update default values as processes evolve
- Validation Testing: Test validation configuration before full migration
- Backup Strategy: Maintain backup of validation configurations
Troubleshooting
topCommon Issues
Validation Failures:
- Verify the tool is enabled (
"Enabled": true
) - Check that
ValidateRequiredFields
is set to true - Ensure all required fields in target system are identified
- Verify field reference names are correct
Default Value Problems:
- Check that
ApplyDefaultValues
is enabled - Verify default values match target field value formats
- Ensure default values are valid for the field type
- Check for special characters or formatting requirements
Field Reference Issues:
- Use correct field reference names (e.g., “Microsoft.VSTS.Common.Priority”)
- Verify field exists in target work item type
- Check for case sensitivity in field names
- Ensure custom fields use proper naming conventions
Migration Failures:
- Validate that all required fields have values after processing
- Check for fields that require specific value formats
- Verify area and iteration paths exist in target system
- Ensure user fields reference valid users in target system
Performance Considerations
- Large Work Item Counts: Monitor performance with extensive work item validation
- Complex Validation Rules: Consider impact of complex validation logic
- Default Value Processing: Account for time needed to apply default values
- Validation Reporting: Balance validation detail with performance requirements
Data Quality Validation
- Field Value Formats: Ensure default values match expected formats
- Business Rule Compliance: Verify defaults comply with business rules
- Cross-Field Dependencies: Consider dependencies between required fields
- Process Template Alignment: Align validation with target process template requirements
Schema
This is the JSON schema that defines the structure and validation rules for this configuration.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://devopsmigration.io/schema/schema.tools.tfsvalidaterequiredfieldtool.json",
"title": "TfsValidateRequiredFieldTool",
"description": "Tool for validating that required fields exist in target work item types before migration, preventing migration failures due to missing required fields.",
"type": "object",
"properties": {
"Enabled": {
"description": "If set to `true` then the tool will run. Set to `false` and the processor will not run.",
"type": "boolean",
"default": "true"
},
"Exclusions": {
"description": "Add a list of work item types from the source that you want to exclude from validation. This is a case-insensitive comparison.\r\n WARNING: If you exclude a work item type that exists in the migration dataset, the migration will fail when trying to.",
"type": "array",
"default": "[]"
}
}
}
In this article
Project Information
Azure DevOps Marketplace
Maintainer
Created and maintained by Martin Hinshelwood of nkdagility.com
Getting Support
Community Support
The first place to look for usage, configuration, and general help.
Commercial Support
We provide training, ad-hoc support, and full service migrations through our professional services.
Azure DevOps Migration Services