Associating multiple work items to a commit in DevOps
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- DevOps
Multiple work items for a commit are supported in DevOps for Azure DevOps, Bitbucket, GitHub, and GitLab.
Work item syntax in the commit message can be customized to reflect the processes in your organization using the DevopsCommitMessageParserSNC script include in the System Definition > Script Includes module.
In order to link the commits with work items, the work item native ID is extracted from the commit message. In the base system, DevOps supports following commit message formats:
If you want to add support for additional message formats to meet the processes in your organization, you can add a custom logic in the DevopsCommitMessageParser script include by navigating to the
System Definition > Script Includes module. DevopsCommitMessageParser script include extends from DevopsCommitMessageParserSNC. The
DevopsCommitMessageParserSNC has three regular expressions defined for identifying work item native IDs for supported message formats in the base system. See the following example to include a new custom
message format that has work item native IDs in square brackets.
Linking work items to a commit using the Azure DevOps user interface is also supported in DevOps.
You can view the list of associated work items in the DevOps Commit record, and in the Pipeline UI.