Blog Stats
  • Posts - 63
  • Articles - 0
  • Comments - 6
  • Trackbacks - 0

 

Pre-selecting Iteration and Area Path for TFS 2010 SSRS Reports

There are pieces of information spread out on this in various postings for SQL Server Reporting Services used in Team Foundation Server. Here are two:

I will attempt to pull together the essential information.

First, there are two ways that SSRS reports filter on iteration and area path:

  1. …MDXParam (i.e. Query Based) parameter. For example, the Stories Overview report.
  2. Not using …MDXParam (i.e. Query Based) parameter. For example, the Bug trends report

In both, you must first:

  1. Right-click the report drop-down (in SQL Server Reporting Services in a browser; for example from Home > TfsReports > Admin > MSF-Agile-v1
  2. Select Manage
  3. Click the Parameters tab on the left panel

Query Based

When the MDXParam is used.

  1. Execute the following query from SQL Server Management Studio on the TFS_Warehouse table:

     

    select IterationSK, IterationPath from DimIteration

  2. Sort out the records you don’t want
  3. Enter the IterationSK values for the path or paths you want to pre-select into the parameter (i.e. IterationParam) default value field. One number per line.

 image

Make sure to hit the Apply button to save your changes before attempting to view the revised report.

Non Query Based

When the MDXParam is NOT used.

  1. Download and install the MDX Studio (I’m currently using v0.4.10.0 Beta version)
  2. Run MDX Studio and connect to the TFS SQL Server instance
  3. Expand Work Item > Work Item.Iteration Hierarchy > Team Project Collection > [your collection] > [your team project]
  4. Select the desired node and drag it to the query window.
  5. Copy the record or records in the query window you want to pre-select into the parameter (i.e. IterationParam) default value field. One record per line.

image

image

Again, make sure to hit the Apply button to save your changes before attempting to view the revised report.


Feedback

No comments posted yet.


Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 
 

 

 

Copyright © Bob Hardister