I am trying to get the date when an Attachment (ContentEntityObject) was deleted in Confluence.
When I call the Method .getLastModificationDate I don't get the date when the attachment was deleted but when it last was changed or uploaded. How can I get the deletion date of an Attachment (or ContentEntityObject in general)?
Thanks for the help
I know this is a few years late, but just in case someone else is looking for the answer...
As of Confluence v7.14, there is a method of ContentEntityObject, getTrashDate().
The documentation says:
Returns:
when this content entity was added to the trash or
Optional.empty()
if it was trashed before 7.14
So my guess is that the trash date wasn't being captured anywhere before that, which is why you couldn't find that date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.