DCSIMG
TFS Reporting Recipes #1: Get the Iteration Path/GUID for the Current Sprint - Yuval Mazor - Searching for Zen in Software Development

Yuval Mazor - Searching for Zen in Software Development

TFS Reporting Recipes #1: Get the Iteration Path/GUID for the Current Sprint

Purpose

Many times you want to filter the contents of reports based on sprints or iterations (for example, the number of re-opened bugs in each sprint in the project).  In this case, you often want the default of the report filter to show the iteration path of the current sprint.  This query will retrieve the current sprint’s iteration path.

Prerequisites

  • TFS 2010 or higher
  • The Scrum process template
  • A @ProjectGUID  parameter – The GUID of the Team Project in which you’re interested

Query

SELECT IterationPath
FROM dbo.CurrentWorkItemView
WHERE System_WorkItemType = 'Sprint'
    AND ProjectNodeGUID = @ProjectGUID
    AND Microsoft_VSTS_Scheduling_StartDate <= GetDate()
    AND Microsoft_VSTS_Scheduling_FinishDate >= GetDate()

kick it on DotNetKicks.com

Comments

Yuval Mazor - Searching for Zen in Software Development said:

Well, it’s been a while since I’ve last blogged and it’s time to get back into the rhythm! In this series

# October 17, 2012 3:41 PM

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# October 17, 2012 3:43 PM

TFS Reporting Recipes #1: Get the Iteration Path/GUID for the Current Sprint | SELA Blog News | Scoop.it said:

Pingback from  TFS Reporting Recipes #1: Get the Iteration Path/GUID for the Current Sprint | SELA Blog News | Scoop.it

# October 20, 2012 1:51 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: