index > Team Foundation Server - Reporting > Reporting on inforamtion in work item history?

Reporting on inforamtion in work item history?


Is there a way to do a report against information contained in a workitem's history. For example, can we do a report of how many priority 1 bugs were opened that eventually got changed to a priority 2 or 3?

-Ed

Ed Abshire

Some work item history is stored in the cube and additional information is stored in the Warehouse. What question are you trying to answer with your report?

There may be a better way of doing this - and I haven't fully tested these, but for your example the queries below should get you started:

"How many priority 1 bugs were opened that eventually got changed to a priority 2 or 3?"
I translated to:
How many bugs are there which are revised and do not currently have priority 1 - and the 1st revision of the bug had priority 1.

Two Relational queries:

1) Using intersect:
use
[TfsWarehouse]
select
[Work Item].[System_Id]
from
[Work Item]
where
[Work Item].[Microsoft_VSTS_Common_Priority] = 1 and
[Work Item].[System_Rev] = 1
intersect
select
[Current Work Item].[__TrackingId]
from
[Current Work Item] join
[Work Item] on
[Current Work Item].[Work Item] = [Work Item].[__ID]
where
[Work Item].[Microsoft_VSTS_Common_Priority] <> 1

2) Using subquery:

use
[TfsWarehouse]
select
[Work Item].[Microsoft_VSTS_Common_Priority],
[Work Item].[System_Title]
from
[Current Work Item] join
[Work Item] on
[Current Work Item].[Work Item] = [Work Item].[__ID]
where
[Work Item].[System_Rev] <> 1 and
[Work Item].[Microsoft_VSTS_Common_Priority] <> 1 and
[Current Work Item].[__TrackingId] in
(
select
[Work Item].[System_Id]
from
[Work Item]
where
[System_Rev] = 1 and
[Microsoft_VSTS_Common_Priority] = 1
)

These do not exclude closed bugs.

Nick Ericson - MSFT
reply 2

You can use google to search for other answers

 

More Articles

Reports for all current active projects
Unplanned work report incorrect
Datagrid row style
Error al procesar el informe. (rsProcessingAborted) Obtener ayuda...
Accessing Global Lists From Reporting Services
Retrieving System.Description Field Data
Reporting on all Projects
TFS Report Error
Error executing reports in RTM Trial
Can't Create New Projects - Help Please?
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Print reports without preview
Create Report Problems
How is unplanned work report calculated?
Possible Bug in Warehouseadapter
How to update 2005 report definitions to…
Is there a way to select the executed te…
how to produce reports using rs with fea…
Reporting completed work per person retu…
How do i modify the filter on a report
Unable to generate a model from the OLAP…
Restoring reports for a team project
Adding custom parameters in Work Item re…
Issues List is not working
Issues in using reporting services we ar…
New Project -- Reports Not Working Immed…

Hot Articles

How can I report developer hours by week?
Cross Project Reports
report stops showing data - warehouse no…
Creating a custom report -- help
Build report not displaying build data
Adding the Build_Type field to the TFS B…
Datawarehouse, how can I do?
Missing TfsReportDS and TfsOlapReportDS
Did report updating frequency change sin…
Report parameters problems
Setting for URL in Reporting services
No report image in Project Portal, but d…
Requirements Test History and Overview n…
How to update 2005 report definitions to…
Warehouse error question?

Recommend Articles

cube versus warehouse
Failed to load adapter
The synchronization issue of the reporting
Another TFS Warehouse problem...
How can I create Dynamic Query between t…
Reports show no data - but it's there! …
Error al procesar el informe. (rsProcess…
Retrieving System.Description Field Data
TFS reporting
Reporting on all Projects
msmdsrv using 50% cpu for minutes
Reporting Services Hidden Lines
is there any where, where i can get how …
Bug Rates Report - Getting very weird re…
Can't Create New Projects - Help Please?