1

I have a git repo in Azure DevOps Repos, I also have a test User Story set up. I want to set up user story to be linked to my commits automatically. Please help how to do it.

Thanks in advance.

Liza
  • 33
  • 5

1 Answers1

1

In order to do that you need to add certain syntax to your commit messages. You need to add # followed by the work item number into the commit message. You can also add keywords like Fix or InProgress to update the user story via the commit message.

This documentation should get you started

DavidCox88
  • 813
  • 1
  • 10
  • Thanks for the reply. I am using visual studio to commit codes. Could you please tell me how can I set up in visual studio. So that my commits automatically links to User Story. – Liza Aug 02 '22 at 04:49
  • It will be as simple as making sure that you always commit your code with the correct syntax (#ID) to link to the relevant user story, along with an option keyword to update the progress and optional commit text to explain the code changes – DavidCox88 Aug 02 '22 at 07:58