We talked about this feature with Microsoft. There is currently no supported API to support this feature :(
Both the UI and the implementation are part of the TFS package that is part of Visual Studio Ultimate. We hope that there will be an api for it in the next version of Visual Studio.Liam F. O'Neill commented
Hi is there any update on this? For Visual Studio 2017 perhaps?