Exam AZ-400 All QuestionsBrowse all questions from this exam
Question 265

You manage a project by using Azure Boards. You manage the project code by using GitHub.

You have three work items that have IDs of 456, 457, and 458.

You need to create a pull request that will be linked to all the work items. The solution must set the state of work item 456 to done.

What should you add to the commit message?

    Correct Answer: A

    To link multiple work items in Azure Boards and set the state of a specific work item to done, use the format specifying each work item preceded by '#', and the additional statement 'Completed' for the specific work item. The correct syntax for the commit message would be '#AB456, #AB457, #AB458 Completed #AB456', where '#AB456, #AB457, #AB458' links all the work items and 'Completed #AB456' sets the state of work item 456 to done.

Discussion
ozbonnyOption: A

A. #AB456, #AB457, #AB458 Completed #AB456 should be Fixes now but well I think this is out of the date

pal40sgOption: D

In GitHub, you can link a pull request to work items in Azure Boards by using the keywords in the commit message. The "Verifies" keyword is used to link a pull request to work items and automatically set their state when the pull request is merged. In this case, you want to set the state of work item 456 to done, so you use "Verifies #AB456" in the commit message. Additionally, you can include the other work items (#AB457, #AB458) to link them to the pull request.

DH333Option: A

The correct answer isn't present, it should have fix, fixes, or fixed. So the answers that come closest are A and D...... A questions without a right answer should be discarded in my opinion. https://github.com/Gimly/vsts-docs/blob/master/docs/boards/github/link-to-from-github.md

Younglad

There is no answer. The correct answer is Fixes AB#456, AB#457, AB#458

vsvaidOption: C

Closest answer is C if Done is replaced with Fixed and #AB456 is written as AB#456

lambdaCreatorOption: C

Has to be Fixes AB#456 , ...