Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • VSTS: How to get all linked work items since last successful release to production?
  • https://blogs.msdn.microsoft.com/devops/2016/03/02/linking-work-items-to-git-branches-commits-and-pull-requests/

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

like image 555
Daniel Avatar asked Feb 07 '18 12:02

Daniel


1 Answers

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

like image 196
Yan Sklyarenko Avatar answered Nov 15 '22 08:11

Yan Sklyarenko