How to obtain "created date" as a column in a saved search ?
Best Answer
-
Brian_Wiest Customer Super IT Monkey ✭✭✭✭✭SELECT TOP 3000 wi.WorkItemId AS [Id], wi.Created, wi.AffectedUser, wi.Title, dsimpact.DisplayString as [Impact], dsurgency.DisplayString as [Urgency], dsstatus.DisplayString as [Status], wi.AssignedUser, dssupport.DisplayString as [Tier], wi.LastModified, wi.ResolvedDate, wi.ClosedDateFROM WorkItem AS wiLEFT JOIN [Enumeration] enum ON enum.EnumerationID = wi.TierIdLEFT JOIN [DisplayString] dssupport ON dssupport.ElementID=enum.EnumerationID and dssupport.LocaleID = 'ENU'LEFT JOIN [DisplayString] dsstatus ON dsstatus.ElementID=wi.StatusId and dsstatus.LocaleID = 'ENU'LEFT JOIN [DisplayString] dsimpact ON dsimpact.ElementID=wi.Impact and dsimpact.LocaleID = 'ENU'LEFT JOIN [DisplayString] dsurgency ON dsurgency.ElementID=wi.urgency and dsurgency.LocaleID = 'ENU'ORDER BY wi.Created DESC5
Answers
Add the columns you want and then you will have the export to csv option
For some reason I'm getting a lot of duplicates in the result. My SQL skills are very rusty, no idea what I might be doing wrong ?
Thanks for your time and effort Brian, it's a life saver !