0

I have a git repo in Azure DevOps Repos, I also have a test User Story set up.

I cloned the master branch and opened it in VSCode and then on commit I used the extension to select my User Story automatically which added #ID to the commit message and then pushed the change back to the master branch.

When I then look at my User Story in DevOps there is no linked check-in.

Am I missing some kind of linkage, my VSCode is connected to my DevOps and it was able to list the User Story in VSCode when I used the add work items option no problem so not sure what the issue is. Assuming this isn't a one way thing where I have to create a branch from the user story and link it at that point?

Gama11
  • 31,714
  • 9
  • 78
  • 100
Simon
  • 1,613
  • 1
  • 12
  • 27

2 Answers2

8

Automatic link of commit to User Story not working with #ID

Please check if the repository option Submit mention link is enabled:

Go to Project Settings->Repositories:

enter image description here

This option will allow you to automatically create links for work items mentioned in a commit comment.

Hope this helps.

Leo Liu
  • 71,098
  • 10
  • 114
  • 135
  • 1
    Awesome thank you that did the job, having just done a google for "azure repos commit mention linking" it still didn't pull up a decent article about this setting :-( – Simon Apr 24 '20 at 13:26
1

For some reason (that I have yet to figure out) this setting was not on in about half our repositories). I have enabled this now for all repositories (one-by-one as there is no general setting for this, unless somebody knows how).

Also is there an option to generate the links for existing commits that where done before enabling this setting?

Nils
  • 59
  • 6