Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Team Foundation Server 2015 Customization
Team Foundation Server 2015 Customization

Team Foundation Server 2015 Customization: Take your expertise to the next level by unraveling various techniques to customize TFS 2015

Arrow left icon
Profile Icon Gordon Beeming
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
Paperback Oct 2015 208 pages 1st Edition
eBook
$31.99 $35.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Gordon Beeming
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
Paperback Oct 2015 208 pages 1st Edition
eBook
$31.99 $35.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$31.99 $35.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Team Foundation Server 2015 Customization

Chapter 1. Creating a Dashboard and a Welcome Page

This chapter aims to guide you through creating dashboards for your team from information that exists in Team Foundation Server (TFS). We'll also take a lap around welcome pages and how they work. We will cover pinning of the following data to dashboards and how to move pinned data around on the dashboard:

  • Work item status: Here, we'll cover the pinning of work item query counts and charts
  • Recent source code changes: Here, we'll cover pinning a count of recent code changes
  • The build status: Here, we'll cover pinning charts showing the build time and if they pass or fail
  • Testing charts: Here, we'll cover pinning test related information like test status

We'll assume that you have access to TFS 2015 and have all the permissions required to create and modify various kinds of data in the team project that you are using. We'll also assume that you currently have some data that you are able to use for the samples.

What permissions do I need?

In order to pin the kind of data you want to your home page, you will need to either have Edit project-level information permissions for the project or be a Team Administrator of the team that you are trying to pin data for.

Note

Note that if you have the Edit collection-level information permissions, this will not enable you to pin data to the team's home pages.

In addition to having these permissions, you will obviously need permissions to the kind of data you want to pin, for example, work item status, testing charts, and more.

What is the Team Dashboard?

The Team Dashboard is the landing page of a team. To get there, navigate to the HOME hub in the main navigation and then the Overview tab in the subnavigation. If you have a new team that has no activity yet, your dashboard will look something like this:

What is the Team Dashboard?

Figure 1: A default empty dashboard

The top section of the dashboard will begin to light up as your team starts work. The bottom part of the dashboard is where you can pin your own tiles for information that you may find useful for your team.

Pinning work item query data

In TFS, you are able to create queries using Work Item Query Language (WIQL) over all the work items in your team project collection. From these queries, you are able to pin some information to your dashboard to surface the results of those queries. There are two types of work item query data that you can pin to your dashboard:

  • Work item query counts
  • Work item query charts

Pinning work item query counts to the dashboard

Navigate to a query and click on the little arrow to the left of the query item in the query explorer. This will pop up a context menu. Click on Pin to homepage, as shown in this screenshot:

Pinning work item query counts to the dashboard

Figure 2: Pinning a query to the dashboard

After you have clicked on Pin to homepage, you will notice that the query now has a pinned icon next to it.

Note

This is slightly different from TFS 2013, where you would add queries to Team favorites and then that would make them show up on the team's dashboard.

Now, if you navigate back to the dashboard by clicking on HOME and then on Overview (if it is not open by default already), you will notice that there is a new tile on the dashboard for this query.

Blue tiles are for queries, and they display a count of the work items returned from a particular query. These tiles are clickable and will take you to that query in the queries tab if you click on them.

Pinning work item query charts

Before we can pin a query chart to the dashboard, we need to create the chart.

Note

Currently, you can only create charts for flat-list queries.

The easiest way to do this is by clicking on the tile on the dashboard from the query that we created earlier. This will take us to the query results view. Click on Charts, as follows:

Pinning work item query charts

Figure 3: Query results

You will notice that by default, there are no charts for a query. To create a new chart, click on the New Chart button, as shown here:

Pinning work item query charts

Figure 4: Creating the first chart

This will open up the CONFIGURE CHART dialog, as shown in the following screenshot:

Pinning work item query charts

Figure 5: The CONFIGURE CHART dialog

You are able to select how the chart orders its values. Commonly, this is ordering by Value or Label. For this field I prefer using label, the main reason being that when it's pinned, it's easier to consume the information in the charts because the same label value appears in the same place in the chart. In the case where the chart would be consumed once off, it would be a better solution to sort by value.

Note

The options that show up in the drop-down lists, such as Group by in the Pie, Bar and Column charts, come from the columns that are shown in your query. So, if you have a custom field, such as Department, and you want to use that field in your chart, you will need to make sure that it is visible in the query results.

For now, we have all the columns we need, so let's select State for Group by, add by State to our title, and then click on OK, like this:

Pinning work item query charts

Figure 6: Saving a pie chart that is grouped by State

Now, we have created a chart and it shows as a saved chart for this query. From here, we can simply click on the ellipsis and then click on Pin to homepage, as shown in this screenshot:

Pinning work item query charts

Figure 7: Pinning the chart to the home page

Visually, nothing will change on this page, letting you know that it is now on the home page. However, if you click on the ellipsis again, you will see that it now says Unpin from homepage, like this:

Pinning work item query charts

Figure 8: Unpinning a chart from the home page

If we navigate back to the home page now, we will see that our chart is visible as well.

You pinned a basic query and a basic chart to the dashboard, but you can imagine with the various chart types available how much insight this can give to a team with just a glance on their dashboard. You can get more information about charts from MSDN by going to https://msdn.microsoft.com/Library/vs/alm/Report/charts.

Pinning recent code changes

I've often worked in teams in which there is a component that is important to their project, such as a framework or a regulated service, and even you would find that people often keep checking the history of such a component to see whether there have been any changes recently that may not have been communicated yet.

Luckily, with TFS, you can pin any folder from the source control to your dashboard. Navigate to the CODE hub and make sure that the Explorer tab is selected. From there, click on the arrow to the left of any folder and then click on Pin to homepage, as shown here:

Pinning recent code changes

Figure 9: Pinning code to the home page

Again, you'll notice that there is a little pinned icon next to the folder that indicates that it is pinned.

Navigating back to the dashboard, you will notice a purple tile with the count of recent code changes.

You can pin any level of your source control to your home page; for example, you can pin the entire repository (as we did earlier for our Git repository), or specific folders that you care about (say, a security library folder).

Pinning the build status

With builds, we get a much nicer pinned experience—in my opinion—than with the other areas where we can pin data. Navigate to the BUILD hub.

Now, similarly to the recent code changes in the build explorer panel on the left, click on the arrow and then click on Pin to homepage, as shown here:

Pinning the build status

Figure 10: Pinning a build to the home page

As with recent code changes, this will show you a little pinned icon next to the build item.

If we navigate back to the home page, we will now see a nice tile that shows passed/failed and the duration of builds for the pinned build.

You can pin both old XAML-style builds and the new type of builds to the dashboard.

Pinning testing charts

As with work items, test suites also have charting capabilities under the TEST hub. Navigate to the TEST hub.

From here, click on the Charts tab of any test suite, as shown in the following screenshot:

Pinning testing charts

Figure 11: The Charts tab of a test suite

You will notice that for test suites, you are able to add charts that have two kinds of data sources. One type is the test case information, which is similar to the work item information but with data that is specific to test cases, and the other type is from the test case results, which give you data such as tests passed and failed.

Pinning testing charts

Figure 12: Test case chart data option types

We can follow the same procedure as with the work item charts to pin this; just click on the ellipsis and then on Pin to homepage. Again, nothing will visually tell you that this chart is pinned, but you can navigate to the home page and you will see this very chart being displayed there.

Rearranging tiles on the home page

So far, we have pinned a bunch of tiles to the dashboard and it currently looks very messy, with gaps between some of the tiles, like this:

Rearranging tiles on the home page

Figure 13: The Team Dashboard after just pinning the tiles

Now, obviously there is a way to rearrange these items and it is simple—just drag them around. Give it a try; drag the build tile between the work item query count and recent changes tiles, and then place the work item and testing chart next to each other.

Rearranging tiles on the home page

Figure 14: Pinned tiles that can be arranged

As you can see, the rearranged tiles are a lot more effective, as there isn't a bunch of white space in between them.

Welcome pages

New to TFS 2015 are welcome pages as well. If you have used GitHub before, then you'll be familiar with markdown. GitHub does a really good job at explaining all the features of markdown at https://guides.github.com/features/mastering-markdown/. TFS uses markdown in a couple of places, one of them being its welcome pages.

Where are the welcome pages?

The welcome pages are on the teams' home pages. You can navigate to them by clicking on the HOME hub and then on the Welcome tab.

Once you are there, you will see on the left-hand side a list of all your repos for the current team project, as shown here:

Where are the welcome pages?

Figure 15: A list of repositories and default markdown page

If you have a README.md file in your repository, it will be displayed when you click on that repository. If you don't have a README.md file, a default markdown will show you what you might have there. Then, if you want to create one, you can simply click on Edit and then alter the markdown. After you have clicked on Save, a README.md file will be added to that repository.

Markdown files are a great way of creating documentation for your code. Some of the best reasons you'd want to do this are that it's easy to do and the markdown sits with your code, so it gets versioned with your code. This allows you to make comparisons in the documentation files as you would with any other code to see what has changed through various versions.

Summary

In this chapter, we took a lap around what can be pinned to a home page. We walked through pinning work item queries and charts created off work item queries to a home page. Then we looked at how to pin recent code changes, build statuses, and test case charts to the home page. Finally, we had a brief overview of what welcome pages are, what they are used for, and how we can use them.

In the next chapter, we'll be covering team boards in TFS and how we can customize them.

Left arrow icon Right arrow icon

Description

Team Foundation Server is an efficacious collaboration tools that will allow you to share code, track records, software, all in a single package. Integrate it with your existing IDE or editor and let your team work in a flexible environment that adapts to projects of all shapes and sizes. Explore what gives you the edge over other developers by knowing the tips and quick fixes of customizing TFS. Effectively minimize the time users spend interacting with TFS so that they can be more productive. In this book you will quickly cover lots of TFS extension points, from the very basic task of customizing and configuring dashboards to customizing automated builds and check-in policies. You will learn how to create dashboards in TFS 2015, as well as add tiles, graphs, and more useful modifications. You'll perform customizations that make TFS work for you by streamlining your team’s boards. You'll cast modifications to the process template and learn the tips and tricks required to make efficient and valuable uses of your team’s board. From team-specific dashboards to complex server plugins, everything is covered in this concentrated guide to aid your knowledge. Delving deep, this book covers the pros and cons of check-in policies, as well as their proper debugging and deployment strategies. After that you will learn about advanced XAML builds and TFS jobs to further experiment with the activities of your jobs on your system. Finally, you will learn about service hooks and the amazing utility of .VSO extensions to help you create new extensions and explore new levels of customization.

Who is this book for?

This book is intended for anyone with experience with TFS, and in particular, those intermediate users who want to add more value to their organization by making its TFS users more productive. The book requires basic coding skills.

What you will learn

  • Customize TFS 2015 dashboard and administer various components
  • Configure board cards, swim lanes, and columns
  • Explore the types of changes that can be made on the TFS process templates
  • Create your own custom control for the Web and client work item forms
  • Build up new checkin policies
  • Get to grips with your personal server plugins and their uses
  • Customize both XAML builds and the new build system
  • Schedule jobs for more complicated business rules to run on a schedule
  • Extend your TFS possibilities with service hooks and VSO extensions

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 27, 2015
Length: 208 pages
Edition : 1st
Language : English
ISBN-13 : 9781785888199
Concepts :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Oct 27, 2015
Length: 208 pages
Edition : 1st
Language : English
ISBN-13 : 9781785888199
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 131.97
Microsoft Team Foundation Server 2015 Cookbook
$54.99
Team Foundation Server 2015 Customization
$43.99
Reporting in TFS
$32.99
Total $ 131.97 Stars icon

Table of Contents

11 Chapters
1. Creating a Dashboard and a Welcome Page Chevron down icon Chevron up icon
2. Streamlining Your Teams' Boards Chevron down icon Chevron up icon
3. Customizing Your Process Template Chevron down icon Chevron up icon
4. Enhanced Work Item Forms with Field Custom Controls Chevron down icon Chevron up icon
5. The Guide Standards for Check-in Policies Chevron down icon Chevron up icon
6. Enforcing Standards with Server-Side Plugins Chevron down icon Chevron up icon
7. Customizing the TFS Build Chevron down icon Chevron up icon
8. Creating TFS Scheduled Jobs Chevron down icon Chevron up icon
9. Service Hooks Chevron down icon Chevron up icon
10. VSO Extensions Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(2 Ratings)
5 star 0%
4 star 100%
3 star 0%
2 star 0%
1 star 0%
Greg Sullivan Sep 20, 2016
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
The book is a bit short on useful examples, while it is good for an overview it is not very 'in depth' for someone looking to get deeper into the api. It has some useful PowerShell scripts to help manager work items though, but using WitAdmin from powershell can be problematic, it hangs on certain tasks.
Amazon Verified review Amazon
Pat Delaney Jun 25, 2018
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Item works as expected and delivered on-time.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.