In tfs 2017 dashboard tag how connect with after commit the code then it link build process.
When you check in code, you could directly select work item ID in Related Work Items
Instead of entering ID, you could also drag work items here from a query result to link work item to check in.
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:
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.
More details please refer this similar question: How to trigger a build based on TFVC label in VSTS?