Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared Parameter does not contain Custom.ReflectedWorkItemId #2578

Closed
2 tasks done
vijaykumars-newt opened this issue Jan 8, 2025 · 0 comments
Closed
2 tasks done

Comments

@vijaykumars-newt
Copy link

Version

  • I confirm that I am using the latest version

Source Version

Azure DevOps Service

Target Version

Azure DevOps Service

Relevant configuration

{
    "Serilog": {
        "MinimumLevel": "Debug"
    },
    "MigrationTools": {
        "Version": "16.0",
        "Endpoints": {
            "Source": {
                "EndpointType": "TfsTeamProjectEndpoint",
                "Collection": "https://dev.azure.com/testorg",
                "Project": "CatCore",
                "AllowCrossProjectLinking": false,
                "ReflectedWorkItemIdField": "Custom.ReflectedWorkItemId",
                "Authentication": {
                    "AuthenticationMode": "AccessToken",
                    "AccessToken": "veuevu3evc3ei,cy"
                },
                "LanguageMaps": {
                    "AreaPath": "Area",
                    "IterationPath": "Iteration"
                }
            },
            "Target": {
                "EndpointType": "TfsTeamProjectEndpoint",
                "Collection": "https://dev.azure.com/AdoMigrateorg",
                "Project": "CatCore",
                "TfsVersion": "AzureDevOps",
                "ReflectedWorkItemIdField": "Custom.ReflectedWorkItemId",
                "AllowCrossProjectLinking": false,
                "Authentication": {
                    "AuthenticationMode": "AccessToken",
                    "AccessToken": "evv3vc3 ec "
                },
                "LanguageMaps": {
                    "AreaPath": "Area",
                    "IterationPath": "Iteration"
                }
            },
            "SharedQuerySource": {
                "EndpointType": "TfsEndpoint",
                "Collection": "https://newtdevops.duckdns.org/DefaultCollection",
                "Project": "CatCore",
                "Authentication": {
                    "AuthenticationMode": "AccessToken",
                    "AccessToken": "vzq54xbcql7vempsdwwuwk3kewian3phnjtai2j3yngc6okjd7wa"
                }
            },
            "SharedQueryTarget": {
                "EndpointType": "TfsEndpoint",
                "Collection": "https://dev.azure.com/AdoMigrateorg",
                "Project": "CatCore",
                "Authentication": {
                    "AuthenticationMode": "AccessToken",
                    "AccessToken": "2qdeKXwq8l1SJnabJvAkd9Dt8ih8JsZnQYI62cAXNqmtb8yYCobDJQQJ99ALACAAAAA7b41nAAASAZDOVvaq"
                }
            }
        },
        "CommonTools": {
            "WorkItemTypeMappingTool": {
                "Enabled": true,
                "Mappings": {
                    "*": "*"
                }
            },
            "StringManipulatorTool": {
                "Enabled": true,
                "MaxStringLength": 1000000,
                "Manipulators": [
                    {
                        "$type": "RegexStringManipulator",
                        "Enabled": true,
                        "Pattern": "[^( -~)\n\r\t]+",
                        "Replacement": "",
                        "Description": "Remove invalid characters from the end of the string"
                    }
                ]
            },
            "TfsAttachmentTool": {
                "RefName": "TfsAttachmentTool",
                "Enabled": true,
                "ExportBasePath": "C:\\Temp\\WorkItemAttachmentWorkingFolder\\",
                "MaxRevisions": 480000000
            },
            "FieldMappingTool": {
                "Enabled": true,
                "FieldMaps": [
                    {
                        "FieldMapType": "FieldtoFieldMap",
                        "ApplyTo": [
                            "*"
                        ],
                        "sourceField": "System.AcceptanceCriteria",
                        "targetField": "System.AcceptanceCriteria2"
                    },
                    {
                        "FieldMapType": "FieldtoFieldMap",
                        "ApplyTo": [
                            "*"
                        ],
                        "sourceField": "System.Description",
                        "targetField": "System.Description2"
                    }
                ]
            },
            "TfsGitRepositoryTool": {
                "Enabled": true,
                "Mappings": {}
            },
            "TfsSecurityTool": {
                "Enabled": true,
                "MigrateSecurityPermissions": true,
                "MigrateUsersAndGroups": true,
                "AreaPathPermissions": true,
                "IterationPathPermissions": true
            },
            "TfsRevisionManagerTool": {
                "Enabled": true,
                "ReplayRevisions": true,
                "MaxRevisions": 0
            },
            "TfsTeamSettingsTool": {
                "Enabled": true,
                "MigrateTeamSettings": true,
                "UpdateTeamSettings": true,
                "MigrateTeamCapacities": true,
                "Teams": null
            },
            "TfsUserMappingTool": {
                "Enabled": true,
                "UserMappingFile": "",
                "IdentityFieldsToCheck": [
                    "System.AssignedTo",
                    "System.ChangedBy",
                    "System.CreatedBy",
                    "Microsoft.VSTS.Common.ActivatedBy",
                    "Microsoft.VSTS.Common.ResolvedBy",
                    "Microsoft.VSTS.Common.ClosedBy"
                ]
            },
            "WorkItemTypeDefinition": {
                "Shared Steps": "SharedSteps",
                "Code Review Request": "CodeReviewRequest",
                "Code Review Response": "CodeReviewResponse",
                "Product Backlog Item":"Product Backlog Item",
                "Shared Parameter":"teamp.SharedParameter"
            },
        },
        
        "Processors": [
            {
                "ProcessorType": "TfsTestConfigurationsMigrationProcessorOptions",
                "Enabled": true,
                "SourceName": "Source",
                "TargetName": "Target",
                "MigrateVariables": true
            },
            {
                "ProcessorType": "TfsTestVariablesMigrationProcessorOptions",
                "Enabled": true,
                "Processor": "TestVariablesMigrationContext",
                "SourceName": "Source",
                "TargetName": "Target"
            },
            {
                "ProcessorType": "TfsWorkItemMigrationProcessor",
                "Enabled": true,
                "ReplayRevisions": true,
                "UpdateRevisionBy": false,
                "UpdateCreatedDate": true,
                "UpdateCreatedBy": true,
                "UpdateWorkItemID": true,
                "UpdateWorkItemRev": true,
                "WIQLQuery": "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.WorkItemType]   IN ('Shared Parameter') ORDER BY [System.ChangedDate] desc",     
                "SkipRevisionWithMissingReflectedWorkItemId": true,        
                "FixHtmlAttachmentLinks": true,
                "WorkItemCreateRetryLimit": 10,
                "FilterWorkItemsThatAlreadyExistInTarget": false,
                "PauseAfterEachWorkItem": false,
                "AttachRevisionHistory": true,
                "GenerateMigrationComment": false,
                "SourceName": "Source",
                "TargetName": "Target",
                "WorkItemIDs": [],
                "MaxGracefulFailures": 2,
                "SkipRevisionWithInvalidIterationPath": false,
                "SkipRevisionWithInvalidAreaPath": false
            },
            {
                "ProcessorType": "TfsTestPlansAndSuitesMigrationProcessor",
                "Enabled": false,
                "OnlyElementsWithTag": null,
                "TestPlanQuery": null,
                "RemoveAllLinks": false,
                "MigrationDelay": 0,
                "RemoveInvalidTestSuiteLinks": false,
                "RemoveInvalidConfigurations": true,
                "FilterCompleted": false,
                "IncludeConfigurations": true,
                "ConfigurationMappings": {
                    "SourceConfigName": "TargetConfigName",
                    "*": "*"
                },
                "IncludeParameters": true,
                "MigrationSpecificItems": ["SharedParameters"],
                "AttachHistoryDatesAsComments": true,
                "BypassRules": true,
                "SourceName": "Source",
                "TargetName": "Target"
            },
            {
                "ProcessorType": "TfsSharedQueryProcessorOptions",
                "Enabled": false,
                "PrefixProjectToNodes": false,
                "SharedFolderName": ["Shared Queries", "My Queries"],
                "SourceToTargetFieldMappings": null,
                "SourceName": "SharedQuerySource",
                "TargetName": "SharedQueryTarget"
            }
        ],
        "ProcessingContext": {
            "BypassRules": true
        }
    }
}

Relevant log output

[09:58:33 INF] [16.0.5] Querying items to be migrated: SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.WorkItemType]   IN ('Shared Parameter') ORDER BY [System.ChangedDate] desc ...
[09:58:33 DBG] [16.0.5] WorkItemQuery: ===========GetWorkItems=============
[09:58:33 DBG] [16.0.5] WorkItemQuery: TeamProjectCollection: https://newtdevops.duckdns.org/DefaultCollection
[09:58:33 DBG] [16.0.5] WorkItemQuery: Query: SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = 'CatCore' AND [System.WorkItemType]   IN ('Shared Parameter') ORDER BY [System.ChangedDate] desc
[09:58:33 DBG] [16.0.5] WorkItemQuery: Parameters: {"TeamProject": "CatCore", "ReflectedWorkItemIdField": "Custom.ReflectedWorkItemId"}
[09:58:33 DBG] [16.0.5] WorkItemQuery: TeamProject: CatCore
[09:58:33 DBG] [16.0.5] WorkItemQuery: ReflectedWorkItemIdField: Custom.ReflectedWorkItemId
[09:58:33 DBG] [16.0.5] Query sent
[09:58:34 INF] [16.0.5] 20 Work items received, verifying
[09:58:34 INF] [16.0.5] Loading 20 Work Items
[09:58:47 DBG] [16.0.5] 20 Work Items loaded
[09:58:47 INF] [16.0.5] Replay all revisions of 20 work items?
[09:58:47 INF] [16.0.5] Validating::Check all Target Work Items have the RefectedWorkItemId field
[09:58:47 WRN] [16.0.5] ValidatingRequiredField: Shared Parameter does not contain Custom.ReflectedWorkItemId
[09:58:47 ERR] [16.0.5] Not all work items in scope contain a valid ReflectedWorkItemId Field!
Microsoft.TeamFoundation.WorkItemTracking.Client.InvalidFieldValueException: Not all work items in scope contain a valid ReflectedWorkItemId Field!

What happened?

A bug happened!

Debug in Visual Studio

  • Visual Studio Debug
@MrHinsh MrHinsh changed the title [Bug]:Shared Parameter does not contain Custom.ReflectedWorkItemId Shared Parameter does not contain Custom.ReflectedWorkItemId Jan 8, 2025
@nkdAgility nkdAgility locked and limited conversation to collaborators Jan 8, 2025
@MrHinsh MrHinsh converted this issue into discussion #2579 Jan 8, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
Development

No branches or pull requests

2 participants