Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add work item to commit in new git experience interface in new Visual Studio 2019

Quick Question for Visual Studio 2019 Version 16.8.3, How do you connect the work item to the commit in the new git changes tab? I am having a really hard time using this new git experience thing. I can see my work item in team explorer but no idea how to add this work item to the commit in this new interface. Usually, there will be a button to add related work items when committing the files in the previous version. Please someone help me out?

like image 421
phonemyatt Avatar asked Dec 11 '20 00:12

phonemyatt


1 Answers

it look like you can just use hashtag '#' in commit message,

That is the recommended syntax.
Example:

Fix a bug #1234

That would actually close the work item

See more at "Drive Git development from a work item" You can link a work item to commits but also other objects:

The link types you can add within the development section are Branch, Build, Changeset, Commit, Found in build, Integrated in build, Pull Request, and Versioned Item.

https://learn.microsoft.com/de-de/azure/devops/boards/queries/media/link-tracking-artifact-to-artifact-link-types.png?view=azure-devops

like image 51
VonC Avatar answered Nov 09 '22 17:11

VonC