0

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!

Anu7
  • 77
  • 1
  • 17

1 Answers1

1

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.

Leo Liu
  • 71,098
  • 10
  • 114
  • 135
  • ill check this and get back to you ! – Anu7 Jul 04 '19 at 11:52
  • Can i update in a few days ? it says i need to install VS community - I need to get permission for this and also it says i " must be a member of the Project Administrators group or be granted explicit permissions to delete or restore work items." -- i need to contact my admin group and get these done.. but i think this is the solution to this. I'm sorry for the delayed responses, hope you understand. – Anu7 Jul 11 '19 at 09:52
  • @Anu7, Hi, how about this issue now? Have the answer help you to resolve your question? – Leo Liu Jul 24 '19 at 07:06
  • this worked thank you ! although i had to get it done by someone with permissions due to lack of permissions :) sorry for the delay though, I was tied up with other works and this needed me to include someone with permissions – Anu7 Aug 09 '19 at 10:46