The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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 eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.