Categories
Team Foundation Server (TFS)

TFS 2005 Customize Work Item Template and Process Template – Part I

Recently I’ve been customizing work item templates in team foundation server – we have been using the CMMi process out-of-the-box but inevitably after some continued use the process now needs some changes and some work item adjusted.

I realize that some companies customize straight away – their processes are clearly defined and TFS needs to be implemented in a particular manner in order for the team to function correctly. Our situation was less rigid, so it was decided to go with the standard process until it was felt that changes were needed.

Most of customization is done using XML which is the standard definition language for objects and entities. In order for customization experience to be smoother, easy and repeatable there is a tool developed by Microsoft and is called TFS Power Tools.

We will break-up the customization into following tasks and will discuss them each in series of posts

  1. Installing and Using TFS Power Tools (Part I, this post)
  2. Customizing Work Item Template (Part II)
  3. Customizing Process Template (Part III)

Installing and Using TFS Power Tools

Using the Team Foundation Server Power Tools it is a relatively painless process and in the latest release, the Visual Studio Team System Process Editor saves the day – it enables a visual representation of the work item templates and processes and allows you to easily customize them, all integrated into Visual Studio.

Following are pre-requisites for installing and working with TFS Power Tools

  1. Visual Studio 2005 (Should also work with Visual Studio 2008, I have not tested it)
  2. Team Foundation Server 2005
  3. Team Explorer 2005
  4. Domain-Specific Language Tools for Visual Studio 2005 Redistributable Components
  5. Windows PowerShell 1.0 (This is required to use TFS Best Practice Analyzer it is required even if you are not going to use the analyzer, this is installation dependency)

Now we all are set up and ready to go – time to install!

In the following step-by-step procedure I will assume that you are already working with TFS and have the VS/Team Explorer setup.

Since pictures speak louder than words, here is what you do to get started:

  1. Install the Domain-Specific Language Tools for Visual Studio 2005 Redistributable Components, pretty straight forward.
  2. Install the Windows PowerShell 1.0, pretty straight forward standard next, I agree, next stuff.
  3. Installing TFS Power Tools

    TFS.Power.Tools.Installation-00-0000

    TFS.Power.Tools.Installation-01-0001

    TFS.Power.Tools.Installation-02-0002

    NOTE: Please Ignore this screen above and press “Next“. I tried restarting after installing the PowerShell 1.0 but Power Tools Installation still was not able to verify that PowerShell was installed.

  4. TFS.Power.Tools.Installation-03-0003

    TFS.Power.Tools.Installation-04-0004

    TFS.Power.Tools.Installation-05-0005

    NOTE: You will see this popup above only if you are running Visual Studio at time of installation. Please close VS and press “Retry

    TFS.Power.Tools.Installation-07-0006

    TFS.Power.Tools.Installation-08-0007

    Using TFS Power ToolsStart Visual Studio 2005, when you start VS, Team Explorer may need to be manually started. You can do this by shortcut key Ctrl+M, Ctrl+\ (Team Explorer should be installed in order to use the TFS Power Tools)

    TFS.Power.Tools.Using-01

    When team explorer is loaded, there is a new menu item “Team” this is menu from where we are going to invoke Power Tools for TFS. Power Tool adds the following two sub menu under Team menu “Work Item Templates” and “Process Editor” the image below shows you how to open a Work Item Template Window

    TFS.Power.Tools.Using-02

    You can now see a new docked window called “Work Item Tracking Template“, click on the “New Template…” select the Project for which you are adding the template, select the Work Item Type and press ok

    TFS.Power.Tools.Using-03

    The image below is blank template for Work Item Type Bug in Project SharePoint.Samples which we selected in the step above. In order to save this template which can later be re-used we need to fill the field which are highlighted in red. You can fill almost all field which are common and you need not enter them every time you create a new Bug.

    TFS.Power.Tools.Using-04

    The image below is Sample of Pre filled Bug template. When you have filled all the information Save the template.

    TFS.Power.Tools.Using-05

    Now, how do we use this Pre filled template when we want to create a new Bug, in Work Item Tracking Template window you can see the template which you saved in step above. Right click on “This is prefilled” and click on “Create work item

    TFS.Power.Tools.Using-06

    A new Work Item of type Bug is open for you to edit with values pre filled from the template. This should save you a lot of time. If you know whom to assign the bug to, you could even pre fill the Assigned To filed

    TFS.Power.Tools.Using-07

    Want more, you can even apply this template to existing Bug entered in the TFS earlier. Run the query “All Work Items” and select all the Bug’s using Ctrl+A, now in Work Item Tracking Template window right click on “This is prefilled” and click on “Apply to selected work items” and then open each Bug which is modified, do additional modification and the save.

    TFS.Power.Tools.Using-09

    Well, you have now seen the use of TFS Power Tool. In next post Part II I will be focusing on making changes to the process and modifying the WIT (Work item tracking) template on the server. I would further suggest you to read the official documentation on TFS Power Tools included with TFS Power Tools installation and can be located in the installation directory TeamFoundationPowerTool.doc

Link to other posts in series:

  1. TFS 2005 Customize Work Item Template and Process Template – Part II
  2. TFS 2005 Customize Work Item Template and Process Template – Part III

By Sameer Dhoot

Welcome to my blog. I am IT Professional with 10 years of experience across several IT disciplines. I am currently based in Farmington Hills, Michigan, USA. I hope that you find my blog of interest. It is mostly around Microsoft platform including SharePoint, SQL Server, TFS, Windows OS, Virtualization as this is what I am currently working on, but my aim is to write about all of the competencies described in my profile and write contents which I believe can be helpful to broader audience (IT Pros) and may include general computing advice, how-to's, FAQ, Tips and Tricks. I would welcome contributors and critics who would help to build this blog in terms of better contents and usability.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.