Created
July 31, 2018 23:19
-
-
Save armchairdeity/8d5a01f564b37d13d99032c1a14af32f to your computer and use it in GitHub Desktop.
Selecting work items that have been in more than one sprint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT TOP 100 | |
WorkItem, | |
IterationPath, | |
COUNT(WorkItem) AS WorkItemCount | |
FROM | |
WorkItemHistoryView | |
WHERE | |
IterationPath NOT LIKE '%deleted node%' | |
AND IterationPath IS NOT NULL | |
GROUP BY WorkItem, IterationPath HAVING COUNT(IterationPath) > 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment