Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get deletion date of ContentEntityObject

Joel Suter April 23, 2018

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

0 votes
WW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 19, 2022

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
AUG Leaders

Atlassian Community Events