Skip to content

Commit 3a104a3

Browse files
committed
PR 56: Merge pbi/4893-RegexAreaPath to master +semver:minor
- Added ability to use the area path prefix (mich easyer than regex) and fixed - Fixed Bug +semver:patch Related work items: #4905, #4893
1 parent a288634 commit 3a104a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TfsWitMigrator.Core/Execution/MigrationContext/WorkItemMigrationContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ private static WorkItem CreateAndPopulateWorkItem(WorkItemMigrationConfig config
205205
} else
206206
{
207207
var regex = new Regex(Regex.Escape(oldWi.Project.Name));
208-
newwit.AreaPath = regex.Replace(oldWi.AreaPath, "newwit.Project.Name", 1);
209-
newwit.IterationPath = regex.Replace(oldWi.IterationPath, "newwit.Project.Name", 1);
208+
newwit.AreaPath = regex.Replace(oldWi.AreaPath, newwit.Project.Name, 1);
209+
newwit.IterationPath = regex.Replace(oldWi.IterationPath, newwit.Project.Name, 1);
210210
}
211211

212212
newwit.Fields["System.ChangedDate"].Value = oldWi.Fields["System.ChangedDate"].Value;

0 commit comments

Comments
 (0)