
Today, we will see how to interact with the TFS task management system inside the Visual Studio integrated environment. This tutorial will cover how to create a task, explore/find tasks, create team queries for filter tasks, change states and make necessary updates on the tasks. I am using Visual Studio 2010, which has the team client within it. If you are using vs 2008, then you will need to update with service pack one and the TFS team client patch to use these features.
Wait! Do you have enough concept how the Software Development Life Cycle actually conducted inside Team Foundation Server? You should get some idea, otherwise while working, you may become confused in some scenarios about what to do. it’s good to be ready.
If you don’t know, work items can be of different types, like tasks, bugs, user stories, test cases, etc. We will explore from time to time. In this tutorial, we primarily deal with the ‘Task’ items. OK, let’s start our journey.
Create a New ‘Task’ Work Item:
Creating a new task may not be your responsibility as a developer, but it may be required in the case of a small team or if you are working with multiple responsibilities. You can find the option to create a new work item/task on the “Team Explorer->{ProjectName}->Work Items->New Work Item->Task” menu option.
Just for your information, ‘User story’ is also like task, but it actually refer to a feature and itself has several modular independent tasks related to that features. I am not covering about it here and skipping it, but you can explore it yourself as well.
After you choose the new work item menu option, you should see a new work item creation window inside Visual Studio, like the image below:
Though you will see many options for creating a task initially, not all of them are mandatory. Only the ‘title’ and ‘details description’ of the task are required for creation. All other fields can be adjusted as the project goes on.
Explore The Work Items Using Team Query:
TFS also provides a convenient way to explore all the work items according to your preferences. You can organize these huge groups of work items into sensible categories, like ‘My Tasks’, ‘My Bugs’, etc. To get such a facility, we will need to get used to the ‘Team Query’ option, which makes TFS task management easier and more efficient.
You should find this option inside the “Team Explorer->{Project Name}->Work Items” option, such as the name ‘My Queries’/’Shared Queries’ etc. Each item you create under the ‘My Queries’ option will be visible to you only. ‘Shared Queries’ will be visible and can be used by other team members.
To look at a traditional team query, let us have a look into an ‘All work items’ team query details given below:
As you can see, it will query for all tasks except those that are not ‘closed’ and not ‘Obsolete’. For a different type of query, you can configure/add/remove options as needed.
There is an alternative way to go to a work item. It is your top menu on IDE’s ‘Team’->’Go To Work Item’ and some other options as well:
Moving Ahead The Work Item As The Project Progress:
As we have a task we can explore, it is time to move on. First, the team lead/analyst will assign a work item to the right developer, us. From then, we will follow the software development life cycle to update the state of the work item. After analysis and design, we can attach the design file on the ‘attachments’ tab. If you use the SharePoint server to manage design files, etc., you can attach that link here, too. On the ‘history’ tab, we can comment on whatever is necessary to move to the next state. It is also handy when we assign somebody else for review to add a small comment on the history tab with our associated design file/shelve-set, etc.
Hopefully, this small overview of the TFS task management system will help you gain a basic understanding of it. Please let me know your questions, suggestions, or feedback. Happy coding 🙂
Discover more from CODESAMPLEZ.COM
Subscribe to get the latest posts sent to your email.
Leave a Reply