需要检查以下几个方面:
代码示例:
foreach (var workItem in workItems)
{
var iterationPath = workItem.IterationPath;
if (string.IsNullOrEmpty(iterationPath))
{
Console.WriteLine($"Work item {workItem.Id} does not have iteration path defined.");
}
else
{
Console.WriteLine($"Work item {workItem.Id} has iteration path {iterationPath}.");
}
}