You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fakeItemsFromTemplateQuery=awaittemplateApi.GetWiqlQueryResults("Select [System.Id] From WorkItems Where [System.TeamProject] = '@project' AND [System.Parent] = @id AND [System.ChangedDate] > '@changeddate' order by [System.CreatedDate] desc",newDictionary<string,string>(){{"@id",config.templateParentId.ToString()},{"@changeddate",changedDate.ToString("yyyy-MM-dd")}});
//AnsiConsole.WriteLine("Stage 1: Executing items from Query");
129
-
QueryResultsfakeItemsFromTemplateQuery;
130
-
fakeItemsFromTemplateQuery=awaittemplateApi.GetWiqlQueryResults("Select [System.Id] From WorkItems Where [System.TeamProject] = '@project' AND [System.Parent] = @id order by [System.CreatedDate] desc",newDictionary<string,string>(){{"@id",config.templateParentId.ToString()}});
131
-
AnsiConsole.WriteLine($"Stage 1: Query returned {fakeItemsFromTemplateQuery.workItems.Count()} items id's from the template.");
//AnsiConsole.WriteLine($"Stage 4: First Pass generation of Work Items to build will merge the provided json work items with the data from the template.");
// failed to load:: do nothing we will refresh the cache.
75
+
}
76
+
if(cachedWorkItems!=null)
77
+
{
78
+
//Test Cache date
79
+
QueryResults?changedWorkItems=await_context.GetWiqlQueryResults("Select [System.Id] From WorkItems Where [System.TeamProject] = '@project' AND [System.Parent] = @id AND [System.ChangedDate] > '@changeddate' order by [System.CreatedDate] desc",newDictionary<string,string>(){{"@id",ParentId.ToString()},{"@changeddate",cachedWorkItems.queryDatetime.AddDays(-1).ToString("yyyy-MM-dd")}});
templateWorkItemLight=await_context.GetWiqlQueryResults("Select [System.Id] From WorkItems Where [System.TeamProject] = '@project' AND [System.Parent] = @id order by [System.CreatedDate] desc",newDictionary<string,string>(){{"@id",ParentId.ToString()}});
0 commit comments