Custom states for work items could be introduced and usage of new custom workflow for state transitions, is possible in team services from some time back. The post here describes how to customize work item states. With latest updates to Team Services a new process customization experience is introduced as described in “Team Services Process Customization”. Let’s explore the state workflow customization of work items with the new process customization experience.
Showing posts with label New State. Show all posts
Showing posts with label New State. Show all posts
Thursday, 29 June 2017
Thursday, 11 July 2013
MSF Agile - Bug WIT - Adding to Backlog with State New
We do not get Bug work item in Backlog for MSF Agile process template. But it is a good idea to have it on the backlog, since the team then will know there are more work to be done. With VS Scrum template we have this as default option.
If we only add the Bug work item to the Backlog, again it becomes a bit of a issue. Why? Because in MSF agile template the initial State of Bug work item is Active. So there will be lot of Active bugs in the board and unassigned..looks bad..isn't it?
If we only add the Bug work item to the Backlog, again it becomes a bit of a issue. Why? Because in MSF agile template the initial State of Bug work item is Active. So there will be lot of Active bugs in the board and unassigned..looks bad..isn't it?
What if we introduce a new State to Bug, as "New", and make the Bug to
have New, Active, Resolve, Close (4 States) rather than having
Active, Resolve, Close (3 States).
OK, lets do it step by step for a team project and see how it goes.
1. First we have to have TFS power tools for VS 2012 update 2 installed to get the customizations done. http://visualstudiogallery.msdn.microsoft.com/b1ef7eb2-e084-4cb8-9bc7-06c3bad9148f
2. Export Bug Work item as below.

2. Open Bug work item template.
3. Choose file saved in step 1
4. In power tools process template editor you can do the modification to add new state for the Bug work item workflow easily using the GUI.
a) Bug work item state transition - MSF Agile default
b) Add new State "New"
c) Easy to modify in GUI
d) But easier to open the Bug.xml file in notepad and edit as per below.
- Add new State "New"
- Remove "" to Active Transition and add the Transitions as below
e) When above changes done, save it as BugModified.xml. Open it in Process template editor, and you should see the new state transition workflow like this.
f) Now import the BugModified.xml to the team project using power tools. (Process Editor --> Work Item Types -- > Import WIT)
h) Make sure to add verify fields "Story Points" (Size of Bug - Similar to User Story Size) and "Stack Rank" (to prioritize the backlog items) available in the bug WIT. If not available add them.
5. Now the Bug work item has new State "New"
6. Now we have to do some modifications to categories, and common config to get the Bug into backlog and to meke sure drag and drops work in Board.
7. Open command prompt in TFS server and change directory (to use witadmin) using
cd C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
8. Execute below command with correct collection and team project name
witadmin exportcategories /collection:http://localhost:8080/tfs/defaultcollection /p:Demo.MSFAgileModified /f:"C:\temp\Categories.xml"
9. Open Categories.xml notepad and add the text in green box in the Requirement Category and save the as CategoriesModified.xml
10. Execute below command to get CommonProcessConfig.xml
witadmin exportcommonprocessconfig /collection:http://localhost:8080/tfs/defaultcollection /p:Demo.MSFAgileModified /f:"C:\temp\CommonProcessConfig.xml"
Change as below (add green box text to bug category) and save the file as CommonProcessConfigModified.xml

11. Now import the two modified xmls using below two commands
witadmin importcategories /collection:http://localhost:8080/tfs/defaultcollection /p:Demo.MSFAgileModified /f:"C:\temp\CategoriesModified.xml"
witadmin importcommonprocessconfig /collection:http://localhost:8080/tfs/defaultcollection /p:Demo.MSFAgileModified /f:"C:\temp\CommonProcessConfigModified.xml"
12. Check the backlog and all now the bugs appear in the backlog
13. When click on board .. err.. :(
14. Before our imports Column Options in the Board looked like
15. But now
16. The fix
17. Great.. the Board is back in operation
18. State transition with drag drop works fine...
If this was done on TFS 2013 preview... Bug would have a different color theme as well..
Subscribe to:
Posts (Atom)
Popular Posts
-
Let’s look at how we can specify the artifact version to download based on the resource CI build linked to the CD pipeline and check on how ...
-
The hosts file in /etc/hosts is allowing the WSL distros to map IP addresses to domain names before going to domain name servers, similar...
-
Can a Coded UI test executed with a Console Application? Yes it is possible. I am going to explain how it can be done. I am going to exec...
-
Pull Request are the controlled way to bring in the changes to your stable branches in your Azure Git repos, or for that matter all Git prov...
-
The new Azure Managed Redis can be deployed with balanced compute and memory with high availability, and useful modules such as RedisJson a...




















