I am in the process of migrating GIT repos into TFS 2017 Update 1. During the process I wanted to learn how you could link commits to work items. It seemed fairly easy to just add #45 where 45 is the work item ID, in the commit message or via Visual Studio change linking. Tried it a couple of times and the links were not being created. It would only create them if I did it in the web using the link options in the work item under Development.
 |
Linking via the web UI |
I just could not figure out why the linking wasn't working. Trying in Team Services there was no issue. Then it got me thinking. In Team Services I had just created an empty repo and added some files. In trying that with my on premise installation that also worked and links showed up.
The Bug
In conclusion the bug exists when you import an existing repo using the TFS 2017 import feature.
If you create an empty repo in TFS and add your local repo and push it up to TFS then you are fine (following the Microsoft instructions they provide in the empty repo.)