Skip to content

Commit

Permalink
PR 43: Fixed Links Bug +semver: minor
Browse files Browse the repository at this point in the history
 - Fixed Links Bug
  • Loading branch information
MrHinsh committed Aug 17, 2016
1 parent d0b7adc commit 5bd6a9e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal override void InternalExecute()
WorkItemStoreContext sourceStore = new WorkItemStoreContext(me.Source, WorkItemStoreFlags.BypassRules);
TfsQueryContext tfsqc = new TfsQueryContext(sourceStore);
tfsqc.AddParameter("TeamProject", me.Source.Name);
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] = ''
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] = ''
WorkItemCollection sourceWIS = tfsqc.Execute();
//////////////////////////////////////////////////

Expand Down Expand Up @@ -76,7 +76,6 @@ internal override void InternalExecute()
CreateRelatedLink(wiSourceL, rl, wiTargetL, sourceStore, targetWitsc);
}
}
wiSourceL.Description = wiSourceL.Description + "<br />##LINKS-DONE##";
wiSourceL.Save();
}
catch (WorkItemLinkValidationException ex)
Expand Down

0 comments on commit 5bd6a9e

Please sign in to comment.