#1926: How to pass attachments in a webhook?
Отредактирована: сегодняSymptoms
How to pass attachments in a ticket via webhook?
Solution
In the webhook data, specify:
"attachments": [{% for attach in event.ticket_comment.attachments.all() %}
{
"public_url": "{{ attach.public_url }}",
"mime_type": "{{ attach.mime_type }}"
}{% if not loop.last%},{% endif %}
{% endfor %}
]
If the server has the __private`_attachments feature flag enabled, then attached attachments will not display a public URL, only those in the text will.