Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
When you link a work item to a pull request (PR), you can automatically complete those work items when you complete the PR. Or, you can specify the workflow state to transition the work item to upon merging the PR.
When you link a work item to a pull request (PR), you can automatically complete those work items when you complete the PR.
For more information, see Create, view, and manage pull requests.
Category | Requirements |
---|---|
Permissions | - To view, follow, and edit work items: View work items in this node and Edit work items in this node permissions set to Allow. By default, the Contributors group has these permissions. For more information, see Set work tracking permissions. - To add tags to work items: Project-level Create new tag definition permission set to Allow. By default, the Contributors group has this permission. |
Access levels | - Project member. - To add new tags to work items or to view or follow pull requests: At least Basic access. - To view or follow work items: At least Stakeholder access. For more information, see About access levels. - All project members, including those in the Readers group, can send emails containing work items. |
GitHub permissions | Contributor to the GitHub repository. |
As shown in the following image, check the box to Complete linked work items after merging. The system defaults to your selection for future PRs.
In the following circumstances, the system doesn't automatically update the work item state to Done, Closed, or Completed categories for the work item type (WIT):
For more information, see Customize your work tracking experience.
To transition a work item to a specific workflow state, you can enter the information in the pull request description. Prefix the #ID with a valid workflow state for the mentioned work item.
Note
This feature requires Azure DevOps Server 2020.1 update or later version.
The following example shows user stories that transitioned - one to the Resolved state and the other to the Review state. Also, two tasks are marked as Done.
To disable the automatic completion of associated work items when users complete a pull request, follow these steps:
Mentions in commit comments to close work items (for example, "Fixes #123") isn't allowed.
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Collaborate with pull requests in Azure Repos - Training
Collaborate with pull requests in Azure Repos
Documentation
Close work items using commit messages - Azure Repos
How to close work items using commit messages
As an addition to the default repository branch setting, we have now added a default branch name for the org-level so that projects default to the organization setting when the branch name isn't specified.
Drive Git development from work items - Azure Boards
Learn how to create a branch, commit, or a pull request in Azure Boards. Also, automatically link work items with source control branches, builds, and commits.