Trying to remove some columns from a TFS Kanban board - tfs

One of my users has discovered that 3 new columns were added to the Kanban board. I've never removed a column from a Kanban board before, so I've been researching how this might be done. It looks like I have to use a command line utility named witAdmin. Using what I found I launched the Developer Command Prompt for VS 2015 and then entered this command:
witadmin exportwitd /collection:http://ourtfsserver:8080/tfs/Enterprise%20Architecture /p:"Server 2008 Retirement" /n:Task /f:"D:\FileToExportTo.xml"
I thought opened the FileToExportTo.xml file, but I couldn't find the column headers that need to be removed, anywhere in it. So, I must have either left something off in the command line, or gave the wrong parameter. What do I need to change, please?

There is nothing wrong with your command line. But it's used to delete redundant state in task.
If you just want to remove some columns from the board. I will give you a more detail steps for your reference:
Before in the sprint board:
Steps:
Export work item (e.g. task) through WitAdmin command.
Delete not used custom state to workflow section
Export ProcessConfiguration process file through WitAdmin command.
Delete the row of state test item in TaskBacklog=>States section. For example:
<States>
<State type="Proposed" value="To Do" />
<State type="InProgress" value="In Progress" />
<State type="InProgress" value="Test" />
<State type="Complete" value="Done" />
</States>
Import modified work item file and process file to the team project
Check the result in web access.
After deleted the column:
After deleted, the customized test column "Test" is gone, hope it helps.

I talked to the former TFS administrator about this issue. He went poking around in TFS 2015 and found an alternative solution. Go to the TFS Team Project, then go to WORK. Make sure you've selected Board and then go to the gear Configuration/Settings. Under the General tab, select "Working with bugs" tab. What he found was someone had selected "Bugs appear on the backlogs and boards with tasks". It should be "Bugs appear on the backlogs and boards with requirements".

Related

How do I customize the work items states - customize the list and colors?

I installed TFS 2018 on the premises and I migrated 2 project collections from a TFS 2012 server. I have a hard time finding the page/dialog where I can assign different colors to the work items states. For the previous versions, MS provided visual studio extensions:
Process Templates Editor, TFS 2015 Power Tools. I use VS 2022. I haven't been able to find an extension for editing these lists that would work with VS 2022 and TFS 2018.
Can you please tell me how can I assign different colors to the work items states, and where I can customize the list?
TIA
Currently there is no such an extension (Process Templates Editor) for VS 2022.
However, we can export the work item type and process definition files using witadmin tool, then customize it with a txt editor, then import the changed files back to your project.
To run the witadmin command-line tool, open a Command Prompt window where Visual Studio is installed. The witadmin command-line tool installs with any version of Visual Studio.
For Visual Studio 2022, it's under the following path:
%programfiles(x86)%\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer
or Professional or Enterprise in place of Community, depending on the version you've installed.
Can you please tell me how can I assign different colors to the work
items states?
To set state colors, we can add the property StateColors to define the colors. See Specify properties and behaviors. Below steps for your reference:
Export the process configuration definition file:
witadmin exportprocessconfig /collection:http://servername:8080/tfs/DefaultCollection /p:YourProjectName /f:E:\temp\ProcessConfiguration.xml
Open the ProcessConfiguration.xml with text editor, add property
StateColors to define the state colors under Properties block,
save the changes.
Import the process configuration definition back to your project:
witadmin importprocessconfig /collection:http://servername:8080/tfs/DefaultCollection /p:YourProjectName /f:E:\temp\ProcessConfiguration.xml
Check the state colors:
where I can customize the list?
If you mean add or remove work item states, then you can reference below steps to do that. (Add "Test" state for Task work item type for example here)
1.Export the Task work item type:
witadmin exportwitd /collection: http://servername:8080/tfs/DefaultCollection /p:YourProjectName/f:E:\temp\Task.xml
2.Open the exported Task.xml file with text editor and add a new state Test under witd > WORKITEMTYPE > WORKFLOW > STATES:
<WORKFLOW>
<STATES>
<STATE value="Test">
<FIELDS>
<FIELD refname="Microsoft.VSTS.Common.ClosedDate">
<EMPTY />
</FIELD>
</FIELDS>
</STATE>
3.Modify the transitions to go through the new state (Add the transitions as needed, from ="In Progress" to="Test" for example here):
<TRANSITIONS>
<TRANSITION from="In Progress" to="Test">
<REASONS>
<DEFAULTREASON value="Ready to Test" />
</REASONS>
</TRANSITION>
4.Import the Task definition file:
witadmin importwitd /collection: http://servername:8080/tfs/DefaultCollection /p:YourProjectName /f:E:\temp\Task.xml
5.Check the state list.

TFS shows old cached team members in "Assigned To" field

I'm using TFS 2013 and the process editor templates. I am trying to add an "allowed values" rule for the "Assigned To" standard field so I entered "[Project]\Some TFS Team" in the the ListItem popup hopping that only members from this team will appear in the dropdownlist suggested values of this field.
Unfortunately the list showed old team members of this team and no matter I added or removed members to and from this team the dropdownlist keeps showing only the old data.
Here are the steps I tried to clear that cache:
1-restart everything (TFS, my machine, TFS server)
2-remove and re-add the rule
3-run witadmin rebuildcache from my machine
4-delete C:\Users\ ...\AppData\Local\Microsoft\Team Foundation\5.0\Cache folder
What else should I look for to make the TFS responsive?
Note:
The same old list also appears in the field in the TFS web access.
You need to remove the default ALLOWEXISTINGVALUE and VALIDUSER rule.
Just change the Assigned to filed context as below:
<FIELD name="Assigned To" refname="System.AssignedTo" type="String" syncnamechanges="true" reportable="dimension">
<ALLOWEDVALUES expanditems="true">
<LISTITEM value="[Project]\Team0720" />
</ALLOWEDVALUES>
</FIELD>
Update:
Please try below items to narrow down the issue:
TFS doesn’t reflect changes in the AD immediately, you can try to
force sync the changes, See Neno’s blog post on the issue with a
tool TfsSyncIdentities.exe as solutions. And this article to synchronize TFS users with AD for your reference.
Try to create a new team, then add several
members to the team, then check the rule with this new team.
Have a check for other work item types, whether they have the same issue.
Have a check for another team project, to check if it works.
#Andy-MSFT it looked like it took years from me to figure out what was the issue- maybe because I didn't logged into the TFS server itself -as I ran TfsSyncIdentities.exe tool to enforce the AD sync then run it again with /status option to check I found that it didn't run , only then I know that the Job agent service is stopped!!, and just after I restarted it everything worked as dreams and TFS responding to all the changes
note:
I had to stop it again because the TFS became toooooo slow when the job agent was running
Thanks Andy for you help and support

How to add columns in sprint board TFS (not backlog board)

In the newer versions I can customize the product backlog board by adding columns and set states. I want to do the same in the sprint board but I can't find that functionality. I've change the way you can work with Bugs but it still don't give me the options I want.
Pls Help
Not possible for Visual Studio Team Services(VSO) but for on-premise it is and is the same process since at least TFS 2012.
You will need to alter your process template for the Team Project to include the additional states. You can do this with either TFS Power Tools or I prefer to do it manually. You didn't specify what Process Template you are using so here it is for the SCRUM template (Others will be the same just will contain different wordings):
Export your WITD for Tasks from your dev machine via command line (I think it needs Team Explorer):
witadmin exportwitd /collection:http://servername:8080/tfs/DefaultCollection /p:"TeamProjectName" /n:Task /f:"C:\FileToExportTo.xml"
Edit this file and find the WORKFLOW section and add in your new state into STATES e.g:
<STATE value="New State" />
Next, in the TRANSITIONS section add in the required transitions and any logic associated with it e.g:
<TRANSITION from="In Progress" to="New State">
<REASONS>
<DEFAULTREASON value="New State Started" />
</REASONS>
</TRANSITION>
Save the file and import it again:
witadmin importwitd /collection:http://servername:8080/tfs /p:"TeamProjectName" /f:"C:\FileToExportTo.xml"
You should export your entire process template and you should add those files to source control. If you want to do the same for Bugs or any other work item type then you will need to export and modify those WITD's too.

Hide Resolved Stories in Visual Studio Online

How can I configure the Stories Backlog so that Resolved stories are not displayed (or are displayed in the bottom of the list) ?
Thanks
On the July 1st update to VSO (TFS on-prem version 2013.3) an option was added at the top of the backlog to Show/Hide in progress work items on the backlog.
If you are just after removing "Resolved" and not other active states - you can only do this in TFS on-prem:
Export the Process Config from your TFS:
witadmin exportprocessconfig /collection:http://server:8080/tfs/DemoCollection /p:"TeamProjectName" /f:processconfig.xml
And have a look for a line similar to the following and relating to Requirements:
<State value="Resolved" type="InProgress" />
Change the value type="InProgress" to match another State (same as your Active State's type maybe).

Is there a way to customize the work item colors in TFS 2012 kanban board?

I would like to differentiate the work item types (i.e. product backlog items vs bugs) using colors or icons, to improve the board visualization.
It is possible in TFS 2013.
Open the Command Prompt
cd %programfiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE
witadmin exportprocessconfig /collection:your col. /p:project /f:file
Edit the exported file, see below
witadmin importprocessconfig /collection:your col. /p:project /f:file
The process config should contain a section work item colors, if the section is missing just add it (e.g. at the end just before the end of ProjectProcessConfiguration)
<WorkItemColors>
<WorkItemColor primary="FF009CCC" secondary="FFD6ECF2" name="Product Backlog Item" />
<WorkItemColor primary="FFF2CB1D" secondary="FFF6F5D2" name="Task" />
<WorkItemColor primary="FFCC293D" secondary="FFFAEAE5" name="Bug" />
</WorkItemColors>
The primary color is used in lists and the secondary color in boards.
I had the exact same problem. The last 7 months or so I have built a chrome plugin that does this (and much more) in my spare time as a project to learn Javascript and to make my daily work easier. Our team and a few more is using it since a while back with good results. Now It is available for free in Chrome Store under the name TFS Kanban buddy.
https://chrome.google.com/webstore/detail/tfs-kanban-buddy/bnkanimchogkpkjbabhoficohanbhalp
The code is available on GitHub as well if someone feels like fiddling with it.
No, there is no non-hack way to change the color of the cards. This functionality is rumored to be "on the backlog" however.

Resources