How to setup a automatic mail notification to confluence page owner
Asked by Purushothaman Panneerselvam:

How to setup a automatic mail notification to confluence page owner when his page is not updated for more than 60 days


Answers:
author: Levente Szabo _Midori_
body: Automation for Confluence is capable of implementing some basic email notification logic, for example, to send an email to the page author (like it's shown in an answer to this question).

In an organization, especially on the enterprise level, the author can be very different from the page owner, who is responsible for a piece of content (policies, guidelines, processes, etc.). The original author may also leave the company, and then your automation rule is broken.

Automation for Confluence doesn't handle page owners for you, while a dedicated Confluence content lifecycle management app, like [Better Content Archiving](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=cloud&tab=overview&utm_campaign=gh&utm_medium=cac-comment-2379642&utm_source=cac), does.

You can set one or multiple users as [page owners](https://www.midori-global.com/products/better-content-archiving-for-confluence/cloud/documentation/manage-the-content-lifecycle/quick-actions?utm_campaign=gh&utm_medium=cac-comment-2379642&utm_source=cac#set-owner) (for a single page or page trees!) and then set up your custom notification workflow to [send emails to Confluence page owners](https://www.midori-global.com/blog/2023/05/24/confluence-notification-and-reminder-to-page-owners?utm_campaign=gh&utm_medium=cac-comment-2379642&utm_source=cac) when certain criteria are met.

![better-content-archiving-confluence-set-page-owner.gif](https://community.atlassian.com/t5/image/serverpage/image-id/261583i12524E113E7575E5/image-size/large?v=v2&px=999 "better-content-archiving-confluence-set-page-owner.gif")

[Give it a try for free](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=cloud&tab=overview&utm_campaign=gh&utm_medium=cac-comment-2379642&utm_source=cac) and use all features for free up to 10 users.

*(Note that Better Content Archiving is a paid and supported app and I'm part of the team developing it.)*

comments: author: Puru Panneerselvam
body: Thanks [Levente Szabo _Midori_.](https://community.atlassian.com/t5/user/viewprofilepage/user-id/570444)

This is exactly what I am looking for.

I have already downloaded [Better Content Archiving.](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=cloud&tab=overview&utm_campaign=gh&utm_medium=cac-comment-2379642&utm_source=cac)Can you please help me with a CQL script to set criteria as Page not updated for more than 'N' no. of days.


author: Levente Szabo _Midori_
body: Sure! I would do the following:

1. Define a status for your "not updated for N days" requirement, and call it "Expired". Notice that when you are setting up your Confluence page status in Better Content Archiving, there are useful CQL tips (the stars icon next to the CQL field), including what you are looking for:

![better-content-archiving-cql-tips.png](https://community.atlassian.com/t5/image/serverpage/image-id/261732i7D02019492DF461F/image-size/large?v=v2&px=999 "better-content-archiving-cql-tips.png")

So the CQL in your case would be

*arch.event.lastUpdatedOn \< now("-60d")*

2. Then you can simply use this status in your notification setting and say

*arch.status = "Expired"*

*![expired-pages-notification.png](https://community.atlassian.com/t5/image/serverpage/image-id/261734i76F09BA84B60BB51/image-size/large?v=v2&px=999 "expired-pages-notification.png")*

If you continue to have questions or want to discuss something specific to your use case, please reach out to us [via our support so we can help!](https://midori.zendesk.com/hc/en-us/requests/new)


author: Barnali Putatunda
body: Hi ,  

You can make use of Automation rule in Confluence Cloud.  
The basic rule would look like this:  

<br />

![automation_confluence_mail.png](https://community.atlassian.com/t5/image/serverpage/image-id/261282i67C180180EC8CABF/image-size/large?v=v2&px=999 "automation_confluence_mail.png")  

Here you can learn more about Automation in Confluence:  
<https://support.atlassian.com/cloud-automation/docs/create-automation-rules-in-confluence/>


Tags: cloud

confluence-cloud

email-automation

email-notification