最近の検索


最近の検索はありません

Remove an attachment from a ticket with a closed status.



投稿日時:2021年9月13日

We are getting personal information attachments from our customers. I would like to remove the attachment from the ticket with a closed status.It would be nice to be able to delete them all at once.


2

20

20件のコメント

Hi community! The GDPR Compliance app allows you to remove attachments without any workarounds and in bulk. You can even create automated tasks for deletion. The app has many more features besides attachment deletion, so you get more for the lower price. You can also delete tickets in bulk, anonymize, or retrieve personal information.

0


1263213546309 It returns "400 bad request" from my end. Below is the API request I run but return error. Note: Some information is redacted for privacy.

curl --location --request PUT 'https://xxx.zendesk.com/api/v2/comment_redactions/xxx' \
--header 'Accept: application/json' \
--header 'Authorization: Basic [token]' \
--header 'Content-Type: application/json' \
--header 'Cookie: __cfruid=xxx; _zendesk_cookie=xxx \
--data '{"ticket_id":xxx,"external_attachment_urls":["https://xxx.zendesk.com/attachments/token/xxx/?name=xxx.jpg"]}'

Do you have any insight on this ?

0


1263169426730 you should be able to remove attachments from the merging comments too. I've just tested the Auto-Remove App for this and it worked. The app is using the same endpoint

0


1263213546309 With your suggested endpoint, I can delete the attachments from closed tickets, however unable to delete attachments from specific merging comment. Could you help me with this issue ?

0


Hello!

This request has been logged and we will soon be in more discovery around this. Thanks!

0


That is correct, Søren. We used this endpoint to build the app.

0


Thank you very much Sorin. I guess that is how the app is built. Thank you for providing the transparency.

0


You can use the Redact Ticket Comment endpoint to remove/redact attachments from closed or archived tickets using the API. This will also reduce your file storage usage.

Alternatively, for a simpler solution, you can use the the Auto-Remove Attachments app to automatically and consistently delete attachments in closed tickets.

2


Hello Søren Reinewald,

As it currently stands, I am afraid we do not support a functionality through our official API to directly remove attachments from closed or archived tickets. 
 
While you can programmatically access information about attachments along with the comments they're associated with using Zendesk's Ticket Comments API, there is unfortunately no method to delete those attachments while keeping the rest of the comment or ticket intact.
 
You may perhaps consider the app that Sorin suggested and continue upvoting this thread to help draw attention from the product development team. 

Thank you and we hope for your understanding on this matter. 

1


Hello Luana, 

Here's how you could approach this situation on your account:
 
  1. Listing tickets that have attachments: Unfortunately, Zendesk does not directly support filtering tickets by the presence of attachments. However, by using the Tickets Comments API you can programmatically iterate through all tickets' comments to check if they have attachments affiliated with them. This operation may require a substantial number of API calls and could be bound by rate limitations or impact performance, so be careful when setting this up.
  2. Removing attachments: Deleting tickets will remove the associated comments and attachments in the process. However, since you want to keep the ticket and delete the attachment, I'm afraid it's not directly supported by our API. A potential workaround could be downloading the necessary information, deleting the ticket, and then creating a new one with the retained information but without the attachments.
  3. Regularizing the use of file storage: Here are a few additional solutions to manage your file storage:
  • Automatically delete old tickets: You could set up an automated process that deletes tickets that are older than a certain date.
  • Outsource file storage: Instead of storing files directly, you can use third-party apps to send files via a link. The actual files can be stored in a cloud storage solution like Google Drive, Dropbox, or Box.
 
Keep in mind that any changes to data in your system should be done cautiously, ensuring all privacy regulations are met and important data is properly backed up or archived before deletion.
 
I hope this helps.

0


サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿