visual-studio-2017changesettfs-code-review

How do I close a code review with changeset that has been depricated?


I use Visual Studio 2017, tfs 2017.

I sent a code review on a changeset few months back and forgot to close it. The branch has now been depricated, and so the changeset is gone.

My review now looks like this

enter image description here

with no visible/usual way to Close/Abandon it

enter image description here

Is there a way to close reviews with no changesets like this one? Its very annoying to see in hanging around there !

Please help!


Solution

  • How do I close a code review with changeset that has been depricated?

    As we know, the code review is a work item. You can try to delete the incorrect code review work item by using witadmin destroywi command.

    To delete the single code review work item, simply enter the ID as shown:

    witadmin destroywi /collection:http://TFSServerName:8080/tfs/DefaultCollection /id:xx
    

    It will cleanup the paper trail in TFS by deleting the useless code review work item, the association with changeset will also be released.

    Check the Remove work items permanently for some details.

    Hope this helps.