Search code examples
visual-studiotfsvisual-studio-2017tfs-workitem

Adding work item id by default in the related work items


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?

VS - Work items

I'm using Visual Studio 2017 and TFS 2012.


Solution

  • 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.

    enter image description here

    Or you could do it the other way around, open the work item and add a link to your previous changeset.

    1. Get the changeset ID by looking at the History of one of the changed files
    2. Open the relevant work item
    3. Select the Links tab
    4. Click the Add button
    5. Select "Changeset" from the Link type dropdown
    6. Enter the changeset ID (from step 1) into the Changeset field, and click OK
    7. Save the work item

    After this the work item will also appear in the changeset's list of associated work items.