Skip to content

Commit 44f8a5e

Browse files
authored
Merge branch 'main' into updating-Migrate-all-nodes-logs-for-Chandu001729
2 parents 69022c5 + 12b5ee4 commit 44f8a5e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

docs/Reference/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ The easyest way to get started with the configruation is to create both a refere
1515

1616
### Creating a Reference File
1717

18-
If you run `devlopsmigration init --options Reference -c configuration-ref.json` the output should be a file with all posible options using the Sample data.
18+
If you run `devopsmigration init --options Reference -c configuration-ref.json` the output should be a file with all posible options using the Sample data.
1919

2020
### Creating a Minimal File
2121

22-
To get a file that you can use its best to start with a minimal file. If you run `devlopsmigration init --options Basic --overwrite` thsi will create that minimal file.
22+
To get a file that you can use its best to start with a minimal file. If you run `devopsmigration init --options Basic --overwrite` thsi will create that minimal file.
2323

2424
### Other options
2525

@@ -31,7 +31,7 @@ Right now we support:
3131

3232
**Note:** Azure DevOps Migration Tools do not ship with internal default configuration and will not function without one.
3333

34-
To create your config file just type `devlopsmigration init` in the directory that you unzipped the tools and a minimal `configuration.json` configuration
34+
To create your config file just type `devopsmigration init` in the directory that you unzipped the tools and a minimal `configuration.json` configuration
3535
file will be created. Modify this as you need.
3636

3737
Note that the generated file show all the possible options, you configuration file will probably only need a subset of those shown.

src/MigrationTools.Clients.TfsObjectModel/Processors/TfsWorkItemMigrationProcessor.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,12 @@ private void CheckClosedDateIsValid(WorkItemData sourceWorkItem, WorkItemData ta
895895
{
896896
closedDateField = "Microsoft.VSTS.Common.ClosedDate";
897897
}
898+
else if (!targetWorkItem.ToWorkItem().Fields.Contains("System.ClosedDate"))
899+
{
900+
Log.LogDebug("CheckClosedDateIsValid::ClosedDate field doesn't exist in targetWorkItem: {targetWorkItem} - nothing to validate.", targetWorkItem);
901+
return;
902+
}
903+
898904
Log.LogDebug("CheckClosedDateIsValid::ClosedDate field is {closedDateField}", closedDateField);
899905
if (targetWorkItem.ToWorkItem().Fields[closedDateField].Value == null && (targetWorkItem.ToWorkItem().Fields["System.State"].Value.ToString() == "Closed" || targetWorkItem.ToWorkItem().Fields["System.State"].Value.ToString() == "Done"))
900906
{
@@ -921,7 +927,6 @@ private void CheckClosedDateIsValid(WorkItemData sourceWorkItem, WorkItemData ta
921927
Log.LogWarning("Target ClosedDate Field: ", "System.ClosedDate");
922928
}
923929
}
924-
925930
}
926931

927932
private bool SkipRevisionWithInvalidIterationPath(WorkItemData targetWorkItemData)

0 commit comments

Comments
 (0)