Linking a GitHub Commit to Azure Boards Work Item 123 Two Ways
You manage a project by using Azure Boards, and you manage the project code by using GitHub repositories. You have a work item that has an ID of 123. You need to link a commit message in GitHub to work item 123 on the board. What are two ways to achieve the goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
Community Votes
67% of anonymous learners picked answer AB. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The Development section of a work item accepts a pasted GitHub commit URL to create the link explicitly, and writing a Boards work item reference such as AB#123 in the GitHub commit message makes Boards resolve it and attach the commit automatically.
Projects are managed in Azure Boards while code is managed in GitHub repositories, and a commit must be linked to work item 123 on the board. The link has to be created across the two systems, so one approach pushes the link from Boards and the other lets the commit message carry the reference that Boards resolves.
Adding a comment containing the commit URL, which only mentions the link in free text without creating a structured relationship, and using the GitHub-native GH-123 reference, which GitHub resolves to a GitHub issue rather than to an Azure Boards work item.
Community Discussion (5 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Two options create the required link between a GitHub commit and an Azure Boards work item. First, the Development section of work item 123 lets you add a link and paste the GitHub commit URL, creating the association explicitly on the Boards side, and mmmnnnooo confirmed this in practice, noting that GitHub commit search there only covers the default branch so other commits must be pasted by URL. Second, writing a Boards work item reference such as AB#123 inside the GitHub commit message causes Azure Boards to resolve the reference and link the commit automatically. The vote was 67 for A and B and 33 for B and D. RV3472 supplied the two specific Microsoft Learn anchors for exactly these two options, which is the clearest documentary support in the thread.Why the Other Options Are Wrong
From the Links settings of work item 123, adding an existing item by commit URL (D) uses the wrong location. MrAZ105 explained that the Development section is where commit links live, and Dankho added the practical distinction that the Links settings is for dependency style links such as parent-child and related work, while the Development section literally contains a Commits link. Adding a comment to work item 123 that includes the commit URL (E) is free text and does not create the structured work item to commit relationship. Adding GH-123 to the commit message (C) uses GitHub's own reference syntax, which resolves to a GitHub issue, and since the work item lives in Azure Boards there is no GitHub issue for it to point at.Community Comment Notes
The community favored A and B at 67 votes against 33 for B and D, and the deciding evidence came from documentation: RV3472 linked the section on using AB to link from GitHub to Boards work items and the section on adding a work item link to a branch, commit, or pull request. MrAZ105's objection to option A is factually wrong, since the Development section does provide a way to add a commit link by URL. Dankho's reply corrected him by noting the Development section has a literal Commits link that search only covers the default branch, which mmmnnnooo then confirmed from hands-on use.Official Reference
Related Analysis
Practice All AZ-400 Questions
Access 100 questions with complete answers and detailed explanations.
View Full AZ-400 Practice Test →