i want to trigger a pipeline when workItem State change to ‘Closed’. to handle that i tried following steps as requirement to trigger pipeline:
- Define an “Incoming Service Connection” to make web hook url post available for pipeline.
- Define a Web hook (set the desired event setting) and set URL to this:
https://{org}/defaultcollection/{project}/_apis/public/distributedtask/webhooks/UpdateWorkItemState?api-version=7.0
which UpdateWorkItemState is webhook name in service connection defined in previous step.
but when testing Web Hook i encountered 404 not found error.
Incoming Service Connection Definition:
Web Hook Definition:
Test Window: