Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Get deleted date for a page in trash

Hello!

I need help. I found this article https://confluence.atlassian.com/confkb/how-to-find-the-deleted-date-for-a-page-in-trash-1155479219.html

But I have an empty table AO_7B47A5_EVENT

Where can I find delete date of items in trash?

Is it possible to get this date using Java API via scriptrunner or only through the database?

Confluence version 7.13.11

Thanks in advance I hope somebody can help!

1 answer

0 votes
Helmy Ibrahim _Adaptavist_
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.
Nov 09, 2023

Hi @aas,

Looking at the Confluence 7.13.11 Java API documentation, I don't think there is a way to retrieve the page's deleted date & time via Java API.

However, you can do so in Confluence 7.14.0 and above with the new addition of the getTrashDate method in the API.

import com.atlassian.confluence.spaces.SpaceManager
import com.atlassian.confluence.pages.TrashManager
import com.atlassian.sal.api.component.ComponentLocator

def trashManager = ComponentLocator.getComponent(TrashManager)
def spaceManager = ComponentLocator.getComponent(SpaceManager)

// Replace with your space key
def space = spaceManager.getSpace('TEST')

// Adjust the min/max results you want
def deletedPages = trashManager.getTrashContents(space, 0, 100)

deletedPages.each { page ->
log.warn "The page ${page.title}(${page.id}) deleted on ${page.trashDate.get()}"
}
Perhaps you can upgrade to 7.14.0 and above, and the script would work for the deleted pages pre-update?

Kind Regards,
Helmy

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events