Forums

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

Inactive Page Automation Rule

Mathew Lederman
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.
March 11, 2025

I am looking to use the Notify people about inactive pages when scheduled (recurring) Confluence automation template ([baseurl].atlassian.net/wiki/admin/automation#/rule/template?templateId=confluence_notify_template_1) but need like the results in a table so I can copy the data into a Confluence page, email, etc.

Here's what I've tried, but after the first row each item is getting it's own line. I want them all to look like the first row if possible.

ZqVNODbFGW.png

 Page Name Page URL  Last Updated Date 
     
 Page Name    
 Page URL    
 Last Updated Date    
     
Page Name    
Page URL    
Last Updated Date    

 

 

2 answers

1 accepted

4 votes
Answer accepted
Bill Sheboy
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.
March 11, 2025

Hi @Mathew Lederman 

Without seeing your entire automation rule for context...

I note that you are iterating over the {{inactivePages}} and the closing symbol is in the wrong place, and so apparently messing up the table.  Please try moving the {{/}} after the end of the row and before the end of the table:

<table>
{{#inactivePages}}
<tr>
<td>{{title}}</td>
<td>{{url}}</td>
<td>{{dateLastUpdated.shortDate}}</td>
</tr>
{{/}}
</table>

And perhaps add the header row, if needed.

Kind regards,
Bill

Mathew Lederman
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.
March 11, 2025

Perfect that worked! It's a simple Send Email action, but you're right I could have included the full screenshot

I was struggling to really understand the {{#inactivepages}} function, but what you shared makes sense and fixed the issue.

Like Bill Sheboy likes this
1 vote
Aron Gombas _Midori_
Community Champion
March 12, 2025

@Mathew Lederman I can see that you are solving a content lifecycle related problem.

The automation rule you are using can be a good starter, a simplistic approach, if you have a small Confluence site (few hundred pages).

If your site is larger than that or:

  • you want a configure the "inactive" status" (even different configurations used in difference spaces)
  • you want to ignore certain spaces, certain pages or page trees
  • you want to send custom notification emails with personalized page lists to content owners, last updaters, space admins, etc. (everyone receives his personalized list of inactive pages -- instead of a global list where several items are not his responsibility)
  • you want to view the status on the top of each page (with the related analytics)
  • you prefer to track his on Confluence dashboards
  • you want to run structured searches
  • ...

... I strongly suggest to try the Better Content Archiving app. This is a feature-rich solution to all content lifecycle use cases (reviews, view tracking, etc.)

confluence-cloud-content-status-indicator.gif

(Discl. this paid and supported app is developed by our team. Free for 10 users!)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events