Today, we will see how we can interact with TFS task management system inside visual studio integrated environment. This tutorial will cover how we can create a task, explore/find tasks, create team query 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 1 and TFS team client patch to be able 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.
Well, if you don’t know, work items can be of different types like task, bugs, user stories test cases etc. We will explore all time to time. In this tutorial, we are dealing with ‘Task’ item primarily. OK, lets start our journey.
Create New ‘Task’ Work Item:
Well, create a new task may not be your responsibility as developer, but it may be required in case of small team or if you are working with multiple responsibility.You can find the option to create a new work item/task on “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 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 a lot of options around there, for creating a task initially, not all of them are mandatory. It only required the ‘title’ and ‘details description’ of the task for creation. All other fields can be adjusted time to time as the project go on.
Explore The Work Items Using Team Query:
TFS also provides a very handy way to explore all the work items as per your given preferences. You can organize these huge group of work items into some sensible way for you like ‘My Tasks’, ‘My Bugs’ etc. To get such facility, we will need to get use of ‘Team Query’ option, which makes the TFS task management more easy and efficient.
You should find this option inside “Team Explorer->{Project Name}->Work Items” option such as named ‘My Queries’/’Shared Queries’ etc. Each item you create under ‘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 tradition team query, let us have a look into a ‘All work items’ team query details given below:
As you can see, it will query for all tasks except those which are not ‘closed’ and not ‘Obsolete’. For different type of query you can configure/add/remove options as per need.
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 can explore it, it is time to move on. First, team lead/analyst will assign a work item to 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 ‘attachments’ tab. If you are using share-point server for managing such design files etc, you can attach that link here too. On ‘history’ tab, we can comment whatever necessary to move to next state. It is also handy when we assign somebody else for review, to add a small comment on history tab with our associated design file/shelve-set etc.
Hopefully this small overview of TFS task management system will help you have basic understanding. Please let me know if you have any questions/suggestions/feedback. Happy coding 🙂
Leave a Reply