Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,179
Community Members
 
Community Events
165
Community Groups

Get deletion date of ContentEntityObject

Edited

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

1 answer

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

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 . 🙋‍♀️ ...

777 views 5 21
Read article

Community Events

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

Events near you