1

i'm using VisualStudioTeamServices and I created a new project with a new Git-Repo.

Then I created a new backlog-item with one new task (ID: #140)

Now I created a file on my local repo and wanted to commit the file and link this commit to my task(#143).

I used this command

git commit -am "test #140"

and

git push

The commit was pushed to my VSTS-Repo but the link to the commit in the task was not created.

The same problem with Tools like GitKranken,...

Does anyone know where the failure is?

0

2 Answers 2

1

No matter git command line or other git GUI, the commit message format #ID should be recognized.

You just need to refresh your web page (such as backlog page), and then open the task which id is 140, then you will find the commit in Development.

enter image description here

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks. My problem was the disabled option. See my answer with the screenshot.
Ok, you can mark your own answer 24 hours later. And it can help others who have similar questions :)
1

Problem solved. You have to enable the option "Automatically create links for work items mentioned in a commit comment." in the options for you repository in VSTS

enter image description here

1 Comment

Note that this in enabled by default, this someone disabled it on your instance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.