Search code examples
tfstags

how to add tag(user story) to build process in tfs2017, If developer check in code


In tfs 2017 dashboard tag how connect with after commit the code then it link build process.


Solution

  • When you check in code, you could directly select work item ID in Related Work Items

    enter image description here

    Instead of entering ID, you could also drag work items here from a query result to link work item to check in.

    enter image description here

    Then when you set up a CI build in TFS, it will auto detect any check in/commit changeset. During the build it will auto add/link that related work item in changeset for build summary result. Such as below:

    enter image description here


    Update:

    TFVC is not supporting label in Code tab of web interface. But it is supported in Visual Studio. Queuing a build for code in TFVC label should be prefixed by L.

    enter image description here

    More details please refer this similar question: How to trigger a build based on TFVC label in VSTS?