Trash related webhook events
I'm working on a project where I would like to act upon the removal of a task, but only when the task is completely removed. There currently seems no way to detect this / act upon this. It would be nice to have specific webhook events when Tasks or Projects are removed from the trash and maybe also when they are restored from the trash.
Is this feasible?
Hi Jaap, I've been thinking about this one.
Could you let me know a little bit more around what you're looking to achieve and why - often getting a little insight into the process why this is necessary helps configure a solution quicker.
I'm working on an integration that attaches files to Wrike tasks. When a file is attached we keep a reference to the Wrike Task & Attachment in our system (our users need to know the file is attached to a Wrike Task that's currently active). When the Wrike task is deleted, we want to clean up this reference in our system.
With the current events, we're able to delete the reference when the Task is deleted. This is fine when the Task is erased after it's been deleted. When the task is restored, we however have lost the reference in our system while the task with the attachment is active again.
Having events on "erase" or "restore" of projects or tasks (and maybe other object types) would allow integrations to handle these type of scenarios.