1
votes

I have a TFS Task Board (Work > Backlogs > Iteration) with four columns:

  1. New
  2. Active
  3. Resolved
  4. Closed

I have modified the workflow to allow Tasks to be moved through all four columns/states (they could not be Resolved before).

Unfortunately, any task that is moved to the Resolved state does not appear on the board. I can go find them and mark them as Closed (or any other state) at which point they reappear on the board.

Why are tasks in this one state not appearing on the board?

Things that may be useful

  • TFS2015
  • Column Resolved is mapped to state Resolved (in options)
  • Changed behaviour was to allow tasks to enter the Resolved state
  • I modified existing states and transitions rather than create new ones

The goal is to use the Resolved state as a "closed pending team consensus" column

Update

Screenshot to avoid confusion about what the problem is.

enter image description here

1

1 Answers

0
votes

Update

enter image description here

Export your WITD for Tasks from your dev machine via command line :

witadmin exportwitd /collection:http://servername:8080/tfs/DefaultCollection /p:"TeamProjectName" /n:Task /f:"C:\task.xml"

Edit this file and find the WORKFLOW section and add in your new state into STATES e.g:

<STATE value="Resolved" />

Next, in the TRANSITIONS section add in the required transitions and any logic associated with it e.g:

  <TRANSITION from="Active" to="Resolved">
          <REASONS>
            <DEFAULTREASON value="Resolved from the backlog" />
          </REASONS>
        </TRANSITION>

 <TRANSITION from="Resolved" to="Closed">
      <REASONS>
        <DEFAULTREASON value="Closed from the backlog" />
      </REASONS>
    </TRANSITION>

Save the file and import it again:

witadmin importwitd /collection:http://servername:8080/tfs  /p:"TeamProjectName" /f:"C:\FileToExportTo.xml"

Then export Processconfig.xml add

<State type="InProgress" value="Resolved" />

under <TaskBacklog category="Microsoft.TaskCategory" parent="Microsoft.RequirementCategory" pluralName="Tasks" singularName="Task" workItemCountLimit="1000">

Import Processconfig.xml, close the browser and open it.

Everything should work as expected. Hope it's clearly.


On the task board it's only possible to add columns using witadmin, by exporting the Task work item and the processconfig, updating them (the XML manually) and importing them back into TFS.

In other words, you need to change two xml files, Task.xml and ProcessConfiguration.xml.

Please make sure you have added that "Resolved" state to Task Work Item workflow in TFS 2015 successfully and customized your process.

Detail steps you could refer below useful links:

Hope this helps.