Skip to content

Commit

Permalink
Better warning message about links to missing target work items
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Hjelm committed Sep 29, 2023
1 parent 1995137 commit 7376614
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/WorkItemMigrator/WorkItemImport/Agent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,9 @@ private bool ApplyAndSaveLinks(WiRevision rev, WorkItem wi, bool addLinkComments
if (link.TargetWiId == -1)
{
var errorLevel = Settings.IgnoreFailedLinks ? LogLevel.Warning : LogLevel.Error;
Logger.Log(errorLevel, $"'{link}' - target work item for Jira '{link.TargetOriginId}' is not yet created in Azure DevOps/TFS.");
Logger.Log(errorLevel, $"'{link}' - target work item for Jira '{link.TargetOriginId}'" +
$" is not yet created in Azure DevOps/TFS. You can safely ignore this warning if" +
$" this work item is scheduled for import later in your migration.");
success = false;
continue;
}
Expand Down

0 comments on commit 7376614

Please sign in to comment.