0
votes

I am working with Azure DevOps 2020 RTW (ADO) OnPrem i would like to trigger an action when work-item (WIT) is created Flow:

  1. Create a WIT on web portal
  2. On WIT creation trigger the creation of several work item - based on fields values from first WIT

I understand i need to use webhooks - i couldn't find any guide please advise

2

2 Answers

0
votes

I'm afraid your requirement is not able to be achieved with webhooks by default. The service hooks in azure devops is that when something(event) happens in Azure Devops it runs task(action) on target service. For Web Hooks, it can't trigger actions that create several work item - based on fields values from first WIT when create a work item. It just sends the Json representation.

You can consider using Azure Devops Rest API to trigger actions (create several work item - based on fields values from first WIT) once you get successful status from web hooks

0
votes

After doing some testing the fast way is to set an Azure Function OnPrem and use the web hooks with the event Work item created to trigger the Function and create the work items.