Ravi Kiran G
Ravi Kiran G

Reputation: 467

How to check in code into repository with a VSTS task name

Currently we can check in code and link the commit id to a task or a backlog item manually in VSTS. I would like to check in code directly into a git repository branch by mentioning the task name and the commit details appear automatically in the VSTS task item.

Can anyone let me know if this is possible. Thanks in advance.

Upvotes: 0

Views: 90

Answers (2)

Panu Oksala
Panu Oksala

Reputation: 3438

If it's still not working, make sure Work item management setting is set to on

enter image description here

This setting is found from Project settings > Repositories > Click repository from "Git repositories" tree and finally click "Options".

Upvotes: 1

Daniel Mann
Daniel Mann

Reputation: 59055

Put the work item ID in the commit message.

Ex: A commit message "Did some stuff #1234" will link the commit to work item 1234.

Upvotes: 2

Related Questions