Linking Azure Boards Work Item 123 to a GitHub Pull Request Two Ways

Configure collaboration and communication
Answer Correct answer: A, B — Boards links outward from the Development section by URL, and GitHub resolves a Boards reference like AB123 in the pull request description into a link.

You manage projects by using Azure Boards. You manage project code by using GitHub. You have a work item that has an ID of 123. You need to link work item 123 to a new pull request. What are two ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct solution is worth one point.

  1. In the Development section for work item 123, select Add link, and then enter the URL of the pull request. Correct Answer
  2. To the description of the pull request, add #AB123. Correct Answer
  3. To work item 123 add a comment that includes the URL of the pull request.
  4. From work item 123, open the Links tab, select Add link, select Existing item, and then enter the URL of the commit.

Community Votes

AB
54%
AD
46%

54% of anonymous learners picked answer AB. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

Azure Boards can link outward through the Development section by pasting the pull request URL, and GitHub can link back by resolving an Azure Boards work item reference such as AB123 in the pull request description, which auto-populates the work item's link.

Projects are managed in Azure Boards while code is managed in GitHub, and work item 123 must be linked to a new pull request. Linking must work across the two systems, so the available approaches either push the link from the Boards side or let GitHub resolve the reference automatically.

Entering the URL of a commit rather than the pull request in the Add link dialog, which creates a link to the wrong object, and pasting a bare work item ID with no prefix into the pull request description, which does not resolve to a Boards work item.

Community Discussion (12 comments)

djhyfdgjk 👍 8
For B syntax is wrong. To be correct it should be AB#123
Gooldmember 👍 1 Selected: AB
I agree with A & B
VamshiJupelli 👍 2 Selected: AD
Tested in my Azure DevOps, adding #AB123 in the description doesn't work. Adding just #123 works. So the answer has to be AD
UrbanRellik 👍 1 Selected: AB
A & B are the most direct approach. Other ways can also link the WIT, but do not follow the terminology word for word.
Kalaisuran 👍 1 Selected: AB
A: https://learn.microsoft.com/en-us/azure/devops/boards/github/link-to-from-github?view=azure-devops b: https://learn.microsoft.com/en-us/azure/devops/boards/work-items/auto-complete-work-items-pull-requests?view=azure-devops
FeriAZ 👍 1 Selected: AB
A. Explicit Linking: This option directly connects the work item to the pull request within Azure Boards. It creates a clear traceability between the development task and the code changes. B. Keyword Referencing: GitHub allows referencing work items by including their ID (e.g., #AB123) in the pull request description. This automatically links the work item to the pull request within Azure Boards if the project and work item tracking are properly configured.
AnishGS 👍 2
AD Tested in the lab account
ozbonny 👍 1 Selected: AD
A. In the Development section for work item 123, select Add link, and then enter the URL of the pull request. D. From work item 123, open the Links tab, select Add link, select Existing item, and then enter the URL of the commit.
freddyneen 👍 3 Selected: AD
A, B and D are correct from developer perspective. The important think is stated in the question description: "You manage projects by using Azure Boards. You manage project code by using GitHub." The difference is that the code is managed by using github but the project is managed by using Azure Boards. Since work items are part of project management and not part of code management, only A and D options are correct.
Munwalinwali 👍 1 Selected: AB
https://learn.microsoft.com/en-us/azure/devops/boards/github/link-to-from-github?view=azure-devops
osagiestar 👍 2 Selected: AB
A. https://learn.microsoft.com/en-us/azure/devops/boards/github/link-to-from-github?view=azure-devops B. https://learn.microsoft.com/en-us/azure/devops/boards/work-items/auto-complete-work-items-pull-requests?view=azure-devops
osagiestar 👍 1 Selected: BD
B. https://learn.microsoft.com/en-us/azure/devops/boards/work-items/auto-complete-work-items-pull-requests?view=azure-devops D. https://learn.microsoft.com/en-us/azure/devops/repos/git/pull-requests?view=azure-devops&tabs=browser#finish

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

Two mechanisms connect a Boards work item to a GitHub pull request. From the Boards side, the Development section of work item 123 lets you add a link and paste the pull request URL, which is an explicit link created in Azure Boards. From the GitHub side, adding a Boards work item reference in the pull request description causes GitHub and Azure Boards to resolve the reference and attach the work item to the pull request automatically. Option C, commenting on the work item with the pull request URL, only puts text in a comment field and does not create a structured link, so it does not count. The vote was 50 for A and B and 43 for A and D, making this a close contest. osagiestar and Kalaisuran each supplied the two official Microsoft Learn pages that correspond exactly to options A and B, which is the strongest support for that pairing.

Why the Other Options Are Wrong

Adding a work item comment that includes the pull request URL (C) is a free-text comment, so it mentions the link without creating the structured work item to pull request relationship that the question is asking for. From work item 123, opening the Links tab, choosing Add link, then Existing item, and entering the URL of the commit (D) selects a commit rather than the pull request, so even though the navigation path in D is otherwise valid, the object being linked is the wrong one. The vote split exists mainly because of a syntax dispute: djhyfdgjk noted the syntax in option B is written backwards and should be AB123 rather than #AB123, and VamshiJupelli reported that in testing only a bare #123 resolved, not #AB123.

Community Comment Notes

The community was nearly evenly split, 50 for A and B against 43 for A and D. The A and B case is backed by documentation: osagiestar posted the Microsoft Learn link-to-from-github page for option A, and Kalaisuran posted the auto-complete-work-items-pull-requests page for option B. freddyneen argued for A and D on the grounds that work items belong to project management rather than code management, while conceding that B also works from a developer perspective. VamshiJupelli's field test, that #123 resolves but #AB123 does not, is the strongest argument for D, and djhyfdgjk's observation that the option's syntax is reversed makes B's literal wording imperfect even though the mechanism it names is correct.

Official Reference

Related Analysis

Practice All AZ-400 Questions

Access 100 questions with complete answers and detailed explanations.

View Full AZ-400 Practice Test →

← Back to AZ-400 Study Guide