I am leaving Azure DevOps so this code will not be actively worked on. If you would like to take ownership of the repo please let us know.
Simple example of a Webhook receiver from Azure Boards work item create event
- Written in .NET Core
- C#
- Hosted as an App Service in Azure
- REST API endpoint that accepts a request from a work item create event from Azure Boards
- The endpoint processes the request by taking the work item id and automatically assigning the work item and adds a tag
-
Create a webhook for work item create event and send request to your REST API endpoint. See documentation
-
Add "work-item-tags" header in the webhook definition. This is used to add a tag(s) to your newly created work item item.
-
Create a Azure DevOps personal access token and enter into the basic authentication password. Username is ignored and can be any value.
-
The REST endpoint will accept the content and will turn around to update the given work item with an assigned to value and tag