How do I get attachment that is posted in a comment of task?
Hi all,
The Webhook payload doesn't provide an attachment ID when a comment contains an attachment (the attachment is attached to the comment rather than the task).
this is my payload for example:
[
{
commentId: 'IEAGKPF2IMCZI6NF',
comment: {
text: 'sfdgsdfg sg gfssgf sfg sdf g sfgd',
html: 'sfdgsdfg sg gfssgf sfg sdf g sfgd'
},
taskId: 'IEAGKPF2KRNSD2IK',
webhookId: 'IEAGKPF2JAABZIGA',
eventAuthorId: 'KUATU2TL',
eventType: 'CommentAdded',
lastUpdatedDate: '2024-11-14T12:06:38Z'
}
]
Moreover, when the attachment is posted to the comment in Wrike like this:
It doesn't fire webhook event (probably because it doesn't exist).
Also, the attachment cannot be posted via API to be related to the comment. (This is the problem in the other direction, from the external app to Wrike).
Am I missing something here or is this just what it is?
Hi Ilija sasic 👋 Let me raise a support ticket for you. One of our experts will be in touch with you shortly.
Rohan V Community Team at Wrike Wrike Product Manager Erfahren Sie mehr über Wrikes leistungsstarke Funktionen und lernen Sie Anwendungsbeispiele kennen
Rohan V Wrike Team member Erfahren Sie mehr über Wrikes leistungsstarke Funktionen und lernen Sie Anwendungsbeispiele kennen
It seems the Webhook payload doesn't include an attachment ID when attachments are part of the comment. One potential workaround is to check the comment's metadata via the relevant API endpoint for task comments, as it may provide more detailed information about attachments. Alternatively, you could explore custom Webhooks or triggers that capture attachment details separately.