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:
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.
Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋♀️ ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events