Changing default location of reports doesn't show up data on the reports even though the reports are rendered

In Team Foundation Server 2010, for each collection there is a “Current Default Folder Location”. This is where there reports are shown on the Reports Manager page, when a project is created.

The location can be either root i.e. “/” or “/FolderA” or “FolderA/Collection1” or “FolderA/FolderB/Collection1” and so on.

When a project is created, then the reports for the project are created at the location where the “Current Default Folder Location” is pointing to at the time of project creation.

For example; a “ProjectX” is created with the “Current Default Folder Location” as “/TfsReports/CollectionY”. The reports will come up fine now.

But, at later point of time if the “Current Default Folder Location” is changed to a different location, then the reports for “ProjectX” will not show up any data after rendering.

NOTE: - If a project is created with “Current Default Folder Location” as root i.e. “ / “ , then whatever be the path in the “Current Default Folder Location” at any point of time, the reports will NEVER show data.

Let us follow the example below for better understanding:

Suppose we create three projects with names test111, test222 and test333.We will also create workitems like User Story’s , Tasks and Bugs.

clip_image001

· test111 has three workitems as follows

clip_image003

· test222 has 4 workitems as follows:

clip_image005

· test333 has 3 workitems as follows:

clip_image007

Now the “Current Default Folder Location” for each project at the time of project creation is as follows:

· For test111

clip_image009

Then in the Reports Manager page the reports for this project will be under “/tfsreports/defaultcollection” as shown below:

clip_image010

· For test222

clip_image012

Then in the Reports Manager page the reports for this project will be under “/tfsreports” as shown below:

clip_image014

· For test333

clip_image016

Then in the Reports Manager page the reports for this project will be under “ / ” as shown below:

clip_image018

Now let us take up 3 scenarios with different “Current Default Folder Location”. In each scenario we will see how the “Bug Status” and “Stories Overview” reports behave for all the three projects:

· Scenario 1: The“Current Default Folder Location” is set to “/tfsreports/defaultcollection”.

For test111

clip_image020

clip_image022

For test222

clip_image024

clip_image026

For test333

clip_image028

clip_image030

· Scenario 2: The“Current Default Folder Location” is set to “/tfsreports”.

For test111

clip_image032

clip_image034

For test222

clip_image036

clip_image038

For test333

clip_image040

clip_image042

· Scenario 3: The“Current Default Folder Location” is set to “ / ” i.e. root .

NOTE: - Whenever a project is created withCurrent Default Folder Location” as “ / ”, then the reports will not show any data even if theCurrent Default Folder Location” at this point of time is “ / “.

So, basically none of the reports will show any data in this scenario. (This includes reports of project test333)

Key Point to remember: -

If we change the “Current Default Folder Location” of test333 to ANY other new location apart from root i.e. “ / “, then the reports will start showing data if the “Current Default Folder Location” is set to the new path.

Scenario- Lets change the “Current Default Folder Location” of test333 from “ / “ to “testreports”.

clip_image044

clip_image045

clip_image047

clip_image049

As you can see from the reports above, the test333 reports are rendered and are showing data.

 

Content developed by: Abhilash Owk

Content Reviewed by: Lakhminder Singh