TFS Team Query: get all changed work items from a specific time

Apparently, when defining a new command request, it is impossible to provide the β€œModified date” field with a time stamp (format β€œ2009-12-14 10:00:00”). I get the error message: "The request failed. It is not possible to indicate the time when the request is executed using date precision."

Is there a workaround for this? I just need a list of work items that have changed since the last "x" minutes.

+7
tfs
source share
4 answers
+5
source share

I ran into the same issue trying to request the latest updates and working around it by doing the following

// defined elsewhere private DateTime lastUpdated; string consult = "select * from WorkItem where [Created Date] > ' " + lastUpdated.ToString("MM/dd/yy") + "' AND [Work Item Type] = 'Test Case'"; IEnumerable<ITestCase> tcc = testManagementTeamProject.TestCases.Query(consult).Where(tp => tp.DateCreated > lastUpdated); 

I did something very similar to get the test results.

0
source share

The last parameter of this query designer allows you to determine the accuracy:

dayPrecision

When TRUE, indicates that DateTime should be allowed for the whole day. Often it is TRUE, so as not to be more accurate for a certain time.

0
source share

To filter your objects in TFS for a specific date, stick to this format: enter image description here

0
source share

All Articles