Search code examples
tfstfs-workitem

Work Items not changes after update *.wit


I'm using TFS 15.117.27414.0 (Tfs2017.Update3) on premise and trying to update some fields (labels for example) on an existing work item type using Visual Studio 2017 and Power Tools. Since some days ago all works fine but now when saving my WIT and open it again I can find my changes but when using this work item on TFS website i see old values.

On screenshot you can see the evidence that i saved my wit and the website does not contains my changes.

I tried to restart my client and clear cache, tried to use other browsers on different device but nothing changes.

Old values old values

New values new values

Missing values old values


Solution

  • You use the WebLayout element to define the layout and controls that appear on work item forms displayed through the web portal. It supports the new work item experience. It is in addition to the Layout element which defines the form elements that appear when viewed through Visual Studio and other non-web clients.

    You need to export WIT definition by using the command below first:

    witadmin exportwitd /collection:CollectionURL /p:ProjectName /n:TypeName /f:"DirectoryPath/FileName.xml"

    More details please refer to the link below:

    https://learn.microsoft.com/en-us/azure/devops/reference/add-modify-wit?view=azure-devops#import-and-export-wit-definition-files-on-premises-xml

    Then customize the work item type under WebLayout section, check the following link:

    https://learn.microsoft.com/en-us/azure/devops/reference/xml/weblayout-xml-elements?view=azure-devops