Report effort per work item in TFS 2012 - reporting-services

I have sucessfully set up the reporting capability for my TFS 2012. Now I'd like to report effort per work item (like User Story). I'm using the Agile process template, so the tasks and user stories have a field for typing in effort. However, during report creation I can't idendify the table and colum where the effort resides. Can anyone give a hint?

Found it. It's in the table FactCurrentWorkItem, field Microsoft_VSTS_Scheduling_CompletedWork.

Related

Table WorkItemsLatest (TFS 2010) missing in TFS 2015 (Collection Database)

We recently migrated from TFS 2010 to TFS 2015 and came across that some of the reporting services are not working anymore.
One of the view we created was pulling various information (WorkItem State, Title,Fld10118) from "WorkItemsLatest" table, however, checking the collection database of TFS 2015 indicates that there is no more "WorkItemsLatest" table in TFS 2015 collection database.
I would appreciate if you can advise how to get above mentioned fields in TFS 2015 collection database. I understand that the operational databases are not supported by Microsoft and encourages to retrieve data from Warehouse database, however, we would like to retrieve this data and will allocate some development time in the future to ensure that data is retrieved from the Warehouse database.
WARNING
Even though you've already mentioned this yourself, querying the database tables directly can lead to breaking functionality between updates. With the recent amount of churn in the work item space (new template customization features landing on VSTS and probably coming to TFS vNext and the new workitem form), expect these items to keep changing in the near future.
Ok, I get it
So, you're probably looking for the following two views:
[Tfs_DefaultCollection].[dbo].[vw_denorm_WorkItemCoreLatest]
[Tfs_DefaultCollection].[dbo].[vw_denorm_WorkItemCustomLatest]
And join them with tbl_Field to be able to identify which Custom Field ID matches which Field Name.

TFS 2013 SSRS Test Points

I am working with TFS 2013 and generating reports with SSRS however I have benn tasked with creating a detailed report showing all steps and acceptance criteria for each test case and list the available parameters. I have searched and searched the web and have not found any examples that show the test steps.
Thank you in advance.
In most instances the Test Steps fields are not set to reportable by default so they are not populated in normal reporting databases. You'll need to set them to reportable or create a new data source targeting your TFS transaction databases instead of the Warehouse/Cube databases.
It is not recommended you target transaction databases with reports since this can affect performance of TFS when reports are run. Especially a field like Test Steps since it might need to pull a lot of data at once.
Use the witadmin command to change the reportability of the Test Steps field. Using detail will only put the information in your Warehouse while the detail option will put it into the Warehouse and the Cube. Where you want it depends on how you write your reports. Once set the reportability type can only be changed in limited ways, so please keep this in mind when deciding how you want it set.
witadmin changefield n:<nameOfFieldToChange> /collection:http://yourcollectionURL:8080/tfs/YourCollectionName /reportingtype:<dimension,detail>
See the reportable attributes section for details.

TFS Reporting capabilities

I have no knowledge about the reporting capabilities of the Team Foundation Server as we have it installed without them.
Now the company wants to generate a report with the hours each person entered each day. Is this possible using the reporting tools of TFS?
Yes, it is possible to now configure the reports as part of TFS even though you did not do so earlier.
Add a Report Server to Your Deployment
Yes, it is possible to report on the number of hours entered into TFS by user each day
No, it is not a good idea and this is an extremely poor metric to monitor and will likely result in a manifestation of negative behaviours in your team / individuals.
No, it is not possible to do time sheets in TFS.
There is another alternative (paid with free trial): http://www.tfs-timetracker.com.
It is fully integrated into TFS and focuses on tracking time people spend. It's compatible from TFS 2012 up to the latest version (currently TFS 2013 Update 2). (I'm from the team, I hope you accept me 'advertise' our solution in this thread.)
TFS is not a system for tracking "the hours each person entered each day". Forgetting about the reporting for the moment, you must first ask where such data would be coming from? Do you have a customized work item type that you use for entering time?
If the data are present in work items, then you can certainly use the integration with Excel. You can create a work item query and easily open the query in Excel. That will give you the data, and you can do further formatting and analysis using the tools built in to Excel.
By the way I've found some tools related with time tracking with TFS:
Free:
TFS Timesheet
TFS Timesheets
Paid:
Team expand
Imaginet
Only the 2nd option will work out of the shelve with TFS 2012.

TFS Requirements Overview Report showing wrong data

I have an interesting issue with TFS reports. When I run the QUERY: Team Queries->Planning and Tracking->Work Breakdown, I see the correct information, which is to say that I see the work items, etc. that are entered into TFS. However, when I run the REPORT: Reports->Project Management->Requirements Overview I see that same data PLUS data that is no longer in the system.
Important information:
* I am using TFS 2010
* When I originally created this project, I used a Microsoft Project plan to upload the work items. Before my team started using it, I decided to forget about Project and just use the web/studio interface, so I used the query "Delete all items" to clean the database.
While the clean worked in all other cases, this report seems to be holding on to those items, and I would like to know if there is a way to fix that. It has been several weeks, and I ran the cube reports to see if it was updating (everything updates fine).
Anyone have a clue what's going on here?
I'm not familiar with the query that you talk about, but if you do a delete of workitems, the delete may not have been propagated to your warehouse (and subsequently the cube). If you have a relatively small number of WorkItems in your TFSWorkItemTracking database, it may be a good idea to rebuild your TFSWarehouse, which will then refresh your cube.
Take a look at the SetupWarehouse.exe command, which should be installed on your Application Tier. This could take anywhere from an hour to a day to run, depending on your version control and work item tracking database, so you may want to do it off hours. It shouldn't affect the day-to-day execution of TFS, just the reports.
The above is for TFS 2008 Only. Per Matthew below, here's the answer for TFS 2010
From what I found SetupWarehouse.exe
no longer exists with TFS2010. In the
Administration Console, under
Application Tier->Reporting, there is
an option called "Start Rebuild".
Using this completely resolved my
problem. Thank you. It should be noted
that there is NO feedback from
clicking on "Start Rebuild". At first
it looked like the admin panel hung,
then it came back without feedback. It
took about an hour for reports to
start working again, which is the only
way I knew it was done.
If you ever get into the situation again where you need to permanently get rid of one or more workitems, you should get the TFS Power Tools. The TFPT utility has a "destroywi" command that allows you to permanently (and safely) remove workitems from TFS.
Power Tools are available here: http://msdn.microsoft.com/en-us/vstudio/bb980963

How can I report on files with pending changes in TFS?

I'd like to create a simple report that shows files that currently have pending changes (checked out) from a TFS 2008 server. I know that I can use the "Find in Source Control" option from Team Explorer, but I would rather generate a reporting services report. Ideally, I'd be able to show when the file was checked out and the user that checked it out, but that's not imperative.
If the data isn't pushed to the TFS data warehouse by default, then I'd like to find the relational table(s) in the SQL Server instance that would need to be queried.
I've spent some time digging around the TFS data warehouse and looking at all of the canned Reporting Services reports that I can get my hands on, but everything seems to be geared towards work items, check-ins associated with work items, etc...
If you're looking for some easy to read data and not too worried about print outs, have a look at the TFS sidekick application by Attrice. Very helpful and if you have the correct permissions, you'll be able to see all the checked out files.
http://www.attrice.info/cm/tfs/
I doubt the information you're looking for is in the data warehouse and even if it was it might not be fresh enough for your purposes. By default the warehouse is updated once an hour.
You could use SSRS to report directly against the TFSVersionControl database but I would not recommend going this route. The database is not documented and chances are very good that it will change in the next version. It could also have performance implications if your queries are not written correctly.
A better solution would be to use the TFS web services as your SSRS data source. There are services you can call to get all files that are checked out. This iformation is always current and the queries it runs are highly optimized.
Example command line (Studio 2008):
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\tf.exe" status /recursive /user:*