Daniel
Daniel

Reputation: 9829

TFS 2018 associating work item with commit without pull request

we are using git in our on-premises TFS 2018 RC2 RTW

when we checkin our code we assiciate a work item by adding a hash and a number e.g. #8635

enter image description here

It is written in the docs that this should work with pull-requests. But in our case we do not neccessarly need pull-requests.

Is it possible to link commits with work items without pull-requests?

related:

Update:

I just tested this on a different git project on the same team project.

Guess what: It's working as expected. Strange there needs to be something with this git project...

enter image description here

Upvotes: 7

Views: 2545

Answers (2)

Yan Sklyarenko
Yan Sklyarenko

Reputation: 32240

Go to http://<yourTFSinstance>/tfs/<TeamProjectCollection>/<TeamProject>/_admin/_versioncontrol, then select the repo in question, and switch to the Options tab. Make sure the appropriate checkmark is ON:

enter image description here

Upvotes: 7

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31013

I've tested on my TFS 2018 RTM, and got correct behavior. You could try to upgrade your TFS 2018 RC2 to RTM version first.

And make sure after git commit -m command, you also git push the commit.

enter image description here

Upvotes: 0

Related Questions