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.
Page Name | Page URL | Last Updated Date |
Page Name | ||
Page URL | ||
Last Updated Date | ||
Page Name | ||
Page URL | ||
Last Updated Date |
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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:
... 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.)
(Discl. this paid and supported app is developed by our team. Free for 10 users!)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.