Automation for notification on page publishing
Asked by Nathan Nicholson:

Hi,

We have a release notes section to a couple of spaces and I wanted a way to use Automation to notify groups of Users when content is published.

There is lots of other content in the space that doesn't require people be notified. This information, however, is something we want all members of certain groups to be notified when it is updated.

We have a parent page of release notes, this page has years as child pages and each year has quarters as child page, showing the release notes.

My thought was to add a label to the pages I wanted people to be notified of when they are published. That way each time we update the page with a new release note everybody would know.

I put a condition in place and said IF {{page.labels}} contains release-notes then ......

Nothing happens though. Is that how you are meant to evaluate labels and their values? I tried it using page.labels.url contains and equals as well but still no luck.

If I change the IF to something simple like page.title then the action gets executed as I would expect.

Thanks in advance for your help.


Answers:
author: Aron Gombas _Midori_
body: The [Better Content Archiving](https://marketplace.atlassian.com/apps/123/better-content-archiving-and-analytics-for-confluence?hosting=cloud&tab=overview) app offers a flexible feature for general-purpose [custom notifications](https://www.midori-global.com/products/better-content-archiving-for-confluence/cloud/documentation/configure/notification-schemes?utm_source=midori-blog&utm_medium=confluence-page-reminders&utm_campaign=content-marketing) .

A notification config looks like this:

![configure-notification-scheme-cloud.png](https://community.atlassian.com/t5/image/serverpage/image-id/320244iEFCD785BCF25845F/image-size/large?v=v2&px=999 "configure-notification-scheme-cloud.png")

In your concrete use case, [create a notification](https://www.midori-global.com/products/better-content-archiving-for-confluence/cloud/documentation/configure/notification-schemes?utm_source=midori-blog&utm_medium=confluence-page-reminders&utm_campaign=content-marketing) with:

* Enabled!
* Select your preferred schedule (once a day, once a week, etc.). You can configure any custom schedule.
* Write the CQL that selects the pages to notify about. For example: *label=release-notes AND updated \> now("-1d")*
* Select the user groups to notify as recipients.
* Configure a [custom email template](https://www.midori-global.com/products/better-content-archiving-for-confluence/cloud/documentation/configure/notification-emails) in which you explain the purpose of the email to the recipient.

Note that even if there are multiple release notes updated, there will be a single "digest" email sent that includes all the updated pages! It effectively avoid "mail-flooding" your recipients, thus helps adoption.

A short video to see this action: [https://www.youtube.com/watch?v=rSB1d4Kb1Kk\&t=16s\&ab_channel=Midori](https://www.youtube.com/watch?v=rSB1d4Kb1Kk&t=16s&ab_channel=Midori)

*(Discl. it is a paid and supported app developer by our team. Free for 10 users!)*


author: Jeroen Poismans
body: Hi Nathan!

Have you tried using the CQL condition:

```
space = xxx AND label = release-notes
```

Here is a resource with the CQL syntax:  
<https://developer.atlassian.com/cloud/confluence/cql-fields/#label>

Jeroen


Tags: cloud

confluence-cloud