Skip to content

Commit 5bd6a9e

Browse files
committed
PR 43: Fixed Links Bug +semver: minor
- Fixed Links Bug
1 parent d0b7adc commit 5bd6a9e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

TfsWitMigrator.Core/Execution/MigrationContext/LinkMigrationContext.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ internal override void InternalExecute()
3434
WorkItemStoreContext sourceStore = new WorkItemStoreContext(me.Source, WorkItemStoreFlags.BypassRules);
3535
TfsQueryContext tfsqc = new TfsQueryContext(sourceStore);
3636
tfsqc.AddParameter("TeamProject", me.Source.Name);
37-
tfsqc.Query = @"SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.RelatedLinkCount] > 0 AND [System.Description] NOT CONTAINS '##LINKS-DONE##' ORDER BY [System.ChangedDate] desc "; // AND [Microsoft.VSTS.Common.ClosedDate] = ''
37+
tfsqc.Query = @"SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.RelatedLinkCount] > 0 ORDER BY [System.ChangedDate] desc "; // AND [Microsoft.VSTS.Common.ClosedDate] = ''
3838
WorkItemCollection sourceWIS = tfsqc.Execute();
3939
//////////////////////////////////////////////////
4040

@@ -76,7 +76,6 @@ internal override void InternalExecute()
7676
CreateRelatedLink(wiSourceL, rl, wiTargetL, sourceStore, targetWitsc);
7777
}
7878
}
79-
wiSourceL.Description = wiSourceL.Description + "<br />##LINKS-DONE##";
8079
wiSourceL.Save();
8180
}
8281
catch (WorkItemLinkValidationException ex)

0 commit comments

Comments
 (0)