Forums

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

Automated email for inactive/old pages.

Remano van Wortel April 25, 2025

Hi,

I'm trying to make an automation for pages that havent been updated for a certain time.

that is a portion that I got working.

 

However, I'm running into an issue, when trying to make the mail template in the "send mail" node, it won't list the page, date etc.

 

This is how I currently have it set up.

Screenshot 2025-04-25 140906.png

Not sure if it is missing something.

 

What I am trying to achieve is:

Check pages in a space that havent been active for a certain amount of time.

send a email with the page(s) and the date that it has been last updated.

2 answers

1 accepted

1 vote
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.
April 25, 2025

Hi @Remano van Wortel -- Welcome to the Atlassian Community!

There are two built-in templates to create a rule for this scenario.  Please review these, modifying them to meet your needs.  You may find them in the rule list under "Templates".

  • Notify people about inactive pages when scheduled (recurring)
  • Mark inactive verified pages ready for review and send an email when scheduled.

 

Kind regards,
Bill

Remano van Wortel April 28, 2025

Hi @Bill Sheboy 

 

I tried the ready made template, but for some reason that one isn't working, which is how we got to the one in the screenshot above.

 

The only thing that doesn't seem to work is the Email content, not providing a link, location etc in it.

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.
April 28, 2025

Without knowing what did not work with the built-in templates, you may encounter the same challenge with other rules.  Regardless of that...

 

Your current rule is using the Lookup Pages action, and so that references the {{lookupPages}} smart value to access the results: 

https://support.atlassian.com/cloud-automation/docs/actions-in-confluence-automation/#Lookup-actions

For example:

  • trigger: scheduled
  • action: lookup pages, with some selection criteria
  • smart values condition:
    • first value: {{lookupPages.size}}
    • condition: greater than
    • second value: 0
  • action: send email, perhaps listing the page titles and URL links with
{{#lookupPages}}
* {{title}} - {{url}}
{{/}}

 

I added a smart values condition so no email is sent when there are no pages found.  You may adjust that, as needed.

Remano van Wortel April 28, 2025

With that it works. 

Everything in a single mail, but then it should also be possible to do a single page per mail/ticket right?

 

or make the url a hyperlink/shortened?

Remano van Wortel April 29, 2025

Found out how to do the hyperlinks etc, with HTML format.

works wonders!

Like Bill Sheboy likes this
0 votes
Piyush Annadate _ACE Pune_
Community Champion
April 25, 2025

Hello @Remano van Wortel , Welcome to the community!!

Are you looking to send the page list and other details in a single mail?

Remano van Wortel April 25, 2025

either a page list in a single email, or a mail per page.

 

Either works, a single mail might be better at the start, and then go towards mail per page.

Suggest an answer

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

Atlassian Community Events