It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get the deletion date of a trash item?

Hi all, 

as an admin I want to periodically empty the Confluence space trash, but I'd like to do it (manually or by a Scriptrunner Script) based on how much old are the files in the trash.

 

image.png

In the space trash view I can't see the information I'm looking for (the deletion date)?

 

It's OK also to get it by a SR script, if there's no other chance, but I guess it's quite curious to not have this information directly from the trash page. 

 

Any hint?

Thanks, Ciao, Andrea

1 answer

0 votes
Diego Atlassian Team Mar 17, 2020

Hello @Andrea Boerio ! The information which you are looking for is indeed not located within the “trash can” itself. We can access it in the instance Audit Log.

All page deletions are logged there and only an admin can access it. Here is how it looks like when we see the audit log for a page deletion:

Anotação 2020-03-17 191944.jpg

Here is an excerpt from our audit log page:

The audit log allows administrators to look back at changes that have been made in your site. This is useful when you need to troubleshoot a problem or if you need to keep a record of important events, such as changes to global permissions. You'll need Confluence Administrator permissions to view the audit log.

 

For more information on the Audit Logs generated by Confluence, you can take a look here:

 

With this in mind, I can say that whatever method you are looking forward to use, it needs to look into the audit logs and not the trash page itself.

Let us hear from you, Andrea! I hope this helps.

Hi @Diego , thanks a lot.

This log can actually be very useful.

I just don't understand how to use the filter, to better define queries to view only the lines I need.

Eg I'd like to filter out the Scriptrunner event type lines, then search only the deletion events, etc...

image.png

Thanks, Andrea

@Diego any comments?

I'm trying to deal with this but ... wouldn't it be much easier to have a column with the deletion date in the trash can view? 

Wouldn't it be quite simple for you to add it?

Thanks Anyway, Ciao, 

Andrea

Diego Atlassian Team Apr 13, 2020

Hello there, @Andrea Boerio ! Thanks for keeping things alive here. I did not receive the notification pointing to your previous comment.

So, let us waste no more time!

I was able to find two Feature Requests that might be interesting for your uses. One of them aims at pinning more detailed information directly into the trashed items in your instance. The other one goes for automatic trash purging from Confluence.

Here, take a look:

 

Also, after looking into Scriptrunner documentation, I was able to find that the Plugin does have its own Log system.

You can check it here:

 

Again, thanks for sending a second message my way! I would not have checked the thread if you did not.

 

O hope this helps!

OK, there's a feature request, I've seen it now, and I will wait...

How can this be considered not a basic function?

I really can't understand, honestly, but thanks for your time.

Ciao, Andrea

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
6.15.9
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,467 views 6 6
Join discussion

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