I follow this article
to add bugs to task board on TFS. It works.
But the problem is that the initial state of created bug is "Active", I want it to be in "New" State, so I modify the workflow according to "Task" workflow. When I go into the backlog, it give me a error message
TF400917: The current configuration is not valid for this feature. This feature cannot be used until you correct the configuration.
I googled but nothing useful. Is there anybody could help on this?
You need to remove the none existing state "Active" from CommonProcessConfig, so first export it:
witadmin exportcommonprocessconfig /collection:"CollectionURL" /p:MyProject /f:"DirectoryPath/CommonConfiguration.xml"
Remove the Active entry:
<TaskWorkItems category="Microsoft.TaskCategory" pluralName="Tasks" singularName="Task">
<States>
<State value="New" type="Proposed" />
<State value="Active" type="InProgress" /> <-- this one needs to be removed, if there is no "Active" state in Bugs or Tasks
<State value="Resolved" type="InProgress" />
<State value="Closed" type="Complete" />
</States>
Import the updated config file:
witadmin importcommonprocessconfig /collection:"CollectionURL" /p:MyProject /f:"DirectoryPath/CommonConfiguration.xml"
Related
I administrate an on-premises TFS server currently on TFS 2018.3.
I need to learn how to add a new column to the Kanban iteration board (which is where tasks are shown).
I searched and searched and found this post that is exactly relevant to this question, but the answer appears to only related to a different version of TFS (probably Azure DevOps 2019).
Nevertheless, I am able to download a copy of the Process (Agile), unzip and modify the tasks to show a new state. (I have incidentally also modified the witadmin (exportwitd) Tasks.xml and modified the workflow section to reflect the new state and state transitions.)
As a result, I can upload my new process template (after changing the name and guid), and create a new project based on it. When I create a story and sub-task, the new state and transitions behave as expected. However, no new column appears on my iteration board. If I transition the task to the new state, it simply disappears from the board.
I can alter columns for "User Stories", and create swimlanes and such with no issues. However, navigating to the Settings (Gear Icon) for the iteration does not give the "columns" setup that it does for User Stories.
Nevertheless, there must be a way to do it, because I can see that in my same collection, my new test project shows the columns "New", "Active", "Resolved", and "Closed", while other previously existing projects show only "Active" and "Closed", so there must be a means of configuring this on a project by project basis as the post suggests.
Can anyone describe for me how to add columns to the kanban iteration board?
You need to export the process config file and add there the new state (and of course, add it to the work item XML states (e.g. Tasks.xml)).
Export the file:
witadmin exportprocessconfig /collection:CollectionURL /p:ProjectName [/f:FileName] [/e:encoding]
There in the task category add the new state (under the <States>):
<TaskBacklog category="Microsoft.TaskCategory" parent="Microsoft.StoryCategory" pluralName="SubTasks" singularName="SubTask" workItemCountLimit="500">
<AddPanel>
<Fields>
<Field refname="System.Title" />
</Fields>
</AddPanel>
<Columns>
<Column width="400" refname="System.Title" />
<Column width="100" refname="System.State" />
<Column width="100" refname="System.AssignedTo" />
<Column width="50" refname="Microsoft.VSTS.Scheduling.RemainingWork" />
</Columns>
<States>
<State type="Proposed" value="Active" />
<State type="Proposed" value="NEW-STATE" />
<State type="InProgress" value="In Progress" />
<State type="Complete" value="Done" />
</States>
Then import:
witadmin importprocessconfig /collection:CollectionURL [/p:ProjectName] /f:FileName [/e:encoding] [/v]
We are using TFS Version 15.105.25910.0 and I have created a custom state - Blocked.
In the current Sprint View, when we change a task to this state, it disappears from the board as there is no column to support blocked (makes sense).
However if I click on User Stories, I can create a blocked column and move my user stories into blocked, but cannot do this with tasks.
Is there a reason why the current iteration view does not allow the creation of a custom column and/or how do I create a view similar to User Stories for Tasks only.
According to your description, seems you just want to add Blocked-state column in below page:
Use these Steps:
Export work item (e.g. task) through WitAdmin command.
Add custom state to workflow section
Export ProcessConfiguration process file through WitAdmin command.
Add state item in TaskBacklog=>States section. For example:
<States>
<State type="Proposed" value="To Do" />
<State type="InProgress" value="In Progress" />
<State type="InProgress" value="Blocked" />
<State type="Complete" value="Done" />
</States>
Import modified work item file and process file to the team project
Check the result in web access.
As for more details how to use WitAdmin command to export and import process configure file. Please refer our official tutorial here--Import and export process configuration .The exported xml file could be edited through NotePad.
You need t modify the team project process config file and add there the new state ("Blocked").
Export the file with witadmin exportprocessconfig /collection:YOU_COLLECTION_URL /p:YOUR_TEAM_PROJECT /f:c:\processconfig.xml
Open the file (c:\processconfig.xml) and search the <TaskBacklog category="Microsoft.TaskCatgerory" ... > node.
In the above node you have States node, add there the new state:
<States>
<State type="Proposed" value="Active" />
<State type="Proposed" value="Blocked" />
<State type="InProgress" value="In Progress" />
<State type="Complete" value="Done" />
</States>
Import the file with witadmin importprocessconfig /collection:YOUR_COLLECTION_URL /p:YOUR_TEAM_PROJECT /f:c:\processconfig.xml
Now you will see in the iteration board also the Blocked state :)
We have a problem with our TFS 2013.
We are trying to set up our Taskboard. Unfortunately, the taskboard is only showing workitems with the state New, Committed, and Done. But workitems with the state In Progress aren't showing up.
Does anybody know a solution for this? Do I have to add the state In Progress somewhere in the process template?
Our process template is ā€˛Microsoft Visual Studio Scrum 2013.4" and we customized a few things in it.
Here's a screenshot of what I meant to describe:
There are no default "In Progress" state of the workitems created in backlog. Seems you have customize it and add this state.
If you want this workitem with "In Progress" state also shown in the task. You should also customize your backlog
<RequirementBacklog category="Microsoft.RequirementCategory" pluralName="Backlog items" singularName="Backlog item">
<States>
<State value="New" type="Proposed" />
<State value="Approved" type="Proposed" />
<State value="Committed" type="InProgress" />
<State value="Done" type="Complete" />
</States>
. . .
</RequirementBacklog >
Then add a value such as below:
<State value="In Progress" type="InProgress" />
You may need some restart after the changing, more details please refer this link: Map WIT category workflow states to metastates
It might not be possible for user stories, but I'm trying to show the new state that I created in the stories board.
We are using the Stories backlog board and under tfs (even through the board by clicking on the items) we can set the items to the new state.
All the info that I've found is about tasks or bugs by exporting the wit file using witadmin but I can't see any way to do the same with user stories.
Any help will be appreciated.
Regards.
You'll need to export the process configuration file for your Team Project using witadmin.exe
Import and export process configuration [witadmin]
witadmin exportprocessconfig /collection:http://TFS2013:8080/tfs/defaultcollection /p:MyProject /f:C:\Temp\processconfiguration.xml
Add in your new state in the requirements category, for example, an "In Progress" state
<RequirementBacklog category="Microsoft.RequirementCategory" pluralName="Backlog items" singularName="Backlog item">
<States>
<State value="New" type="Proposed" />
<State value="Approved" type="Proposed" />
<State value="Committed" type="InProgress" />
<State value="In Progress" type="InProgress" />
<State value="Done" type="Complete" />
</States>
Then import again
witadmin importprocessconfig /collection:http://TFS2013:8080/tfs/defaultcollection /p:MyProject /f:C:\Temp\processconfiguration.xml
Finally, go into your kanban board settings and add a column for the new state.
Some more detail here
Does anyone know how an impediment could appear on the task board? I use TFS 2013. The process template is for Scrum.
I tried to put this work item on Task Category but it doesn't work.
You must modify the states in Impediment.xml to the same states used by Task work item, the Transitions need to be modifyed too, so copy the states and transitions from Task.xml to Impediment.xml
<STATES>
<STATE value="To Do" />
<STATE value="In Progress" />
<STATE value="Done" />
</STATES>
Aditional you must add this work item type into the TaskCategory in Categories.xml
<CATEGORY refname="Microsoft.TaskCategory" name="Task Category">
<DEFAULTWORKITEMTYPE name="Task" />
<WORKITEMTYPE name="Impediment" />
</CATEGORY>
That's all.
I'm not sure if this works for 2013, but in 2017 you can create a Style.
Go to the settings of the Sprint Backlog, by clicking the cog in the top-right corner
Go to the tab Styles and add a new rule with the criteria Blocked = Yes.
Then, whenever a task has this property, it will show in your specified color!