Reputation: 13247
Every time when I check-in the code in Visual Studio, I need to provide the product backlog item's work item id (task id) in the pending changes window's Related Work Items section.
If I'm working on a module for a week, on each check-in I need to provide the same work item id (at least 5 to 6 check-in in a day). It seems repeating of work.
Is there any possible way to add the work item id by default in the "Related Work Items" section in the Visual Studio settings?
I'm using Visual Studio 2017 and TFS 2012.
Upvotes: 3
Views: 1199
Reputation: 16208
You may try to use a custom tool with TFS API like that: How to checkin source code with work item associated using TFS API.
Upvotes: 1
Reputation: 51183
Sorry, it's not able to do this. It will not cached the ID you previous entered.
Instead of entering ID, you could also drag work items here to link work item to check in.
Or you could do it the other way around, open the work item and add a link to your previous changeset.
After this the work item will also appear in the changeset's list of associated work items.
Upvotes: 2
Reputation: 16208
No, that`s not possible. You may add all your changes to work item after your work will be done:
Upvotes: 2