Azure DevOps Service Hook for Attachments - relations.added not received in webhook payload
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
While creating the Service Hook, I have configured:
- Trigger: Work item updated
- Work Item Type: Problem
- Tag: AzureDevOps
- Field: Attached File Count
I noticed that the webhook payload sometimes does not contain the resource.relations.added object, so my attachment detection logic doesn't work. In some cases, the Scripted REST API also throws an exception if expected properties are missing, causing Azure DevOps to retry the Service Hook.
My questions are:
- What is the recommended Service Hook configuration for detecting attachment additions?
- Should I use Field = Attached File Count, or should I leave the Field filter empty and enable "Links are added or removed"?
- Under what conditions does Azure DevOps include the resource.relations.added section in the webhook payload?
- Has anyone successfully synchronized attachments from Azure DevOps to another system using Service Hooks? If so, could you share the Service Hook configuration or a sample payload?
Any guidance or sample payloads would be greatly appreciated.
Thank you!
0 REPLIES 0