Forums

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

Smart Values are not pulling into email that automation is supposed to send out.

Collista Lewingdon
Community Champion
June 30, 2025

I have the following email set up to send with automation. 

2025-06-30 13_18_44-Rule builder - Automation - DoTS IT Regulations - Confluence.png

And the email being sent via automation works. But it comes across without any of the smart values as evidenced below.

Confluence email blanck.png

What am I missing?

 

2 answers

0 votes
Oleksii Melnyk
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.
June 30, 2025

Hi @Collista Lewingdon 

1. Try to add these smart values to the log action. What would be there?

2. What trigger do you see for this rule? Can you make a screenshot of all actions/conditions in the rule?

0 votes
Trudy Claspill
Community Champion
June 30, 2025

Hello @Collista Lewingdon 

Can you please provide screen images showing the entire Automation Rule?

Often the key to understanding why smart values are not generating the expected content requires seeing the entire automation rule so that the context of the smart value usage can be assessed.

Collista Lewingdon
Community Champion
June 30, 2025

2025-06-30 13_52_14-Rule builder - Automation - DoTS IT Regulations - Confluence.png

Again, the only part of the rule not working are the smart values inside the email that goes out. 

Like Susan Waldrip likes this
Trudy Claspill
Community Champion
June 30, 2025

How do you know it is working if the email content doesn't include any identifying information about the pages?

Can you explain the purpose of this rule?

It appears that you are trying to look for pages that have not been updated for more than 2 days and then send an email with information identifying that page.

If I have understood that correctly, then your rule is not constructed properly.

Disclaimer: I have not worked with Automation Rules in Confluence, so what follows is what I have gleaned from the documentation.

A Schedule trigger in confluence does not get the pages against which the rule will run. You need to use some component after the schedule to select the pages that you want. And an Advanced Compare is applicable only once you already have the page selected.

I blieve what you need after your Scheduled trigger is a For Page branch, with the Send Email action nested under the branch.

https://support.atlassian.com/cloud-automation/docs/branches-in-confluence-automation/#Page-branch

Screenshot 2025-06-30 at 2.35.24 PM.png

Like Susan Waldrip likes this
Collista Lewingdon
Community Champion
July 1, 2025

@Trudy Claspill the way I know its working even without the information in the email is that I get the email, its just blank.

What we are attempting to do is set up an audit email that is actually for every ten months, but in the rule we have it set up to 2 days for testing purposes. 

I thought I would need to do the branch as well but could not get the branch to be constructed to view the published date and send the email based off of that. 

Trudy Claspill
Community Champion
July 1, 2025

the way I know its working even without the information in the email is that I get the email, its just blank.

Unfortunately that only proves that the rule is running and sending an email, not that the rule is working correctly to select pages.

With your condition:

{{page.lastUpdatedDate}} < now()

...if no page is actually in context then the left side of the comparison may evaluate as 0 or null. Either of those may be considered "less than" the current date/time.

The fact that the smart values in your email print no values is indicative of the {{page}} smart value not actually referencing any page.

All the examples of using a Scheduled trigger to operate against a set of pages show some action to retrieve the pages.

Based on the documentation

https://support.atlassian.com/cloud-automation/docs/branches-in-confluence-automation/#Page-branch

The criteria you can set includes:

  • Author: Who originally published the page.

  • Date published: When the page was originally published.

  • Date updated: When the page was most recently edited.

It seems that you can use it to branch based either on the original publication date or the last updated/published data. Doesn't one of those meet your requirement?

By default when you select the Page branch it will insert the criteria for Author. You have to click the trash can on the right to remove that.

Screenshot 2025-07-01 at 2.11.54 PM.png

Then you can click Add more criteria

Screenshot 2025-07-01 at 2.12.52 PM.png

...and select if you want to branch on pages based on the original publication date (Created) or the data of the last publication (Last updated)

Screenshot 2025-07-01 at 2.14.02 PM.png

If those don't suit your needs then you can use the Related Entities branch and construct a Confluence Query Language statement to select the pages against which you want to operate.

I hope that information is helpful.

 

(Note that I am leveraging my knowledge of Automation for Jira and review of the Automation for Confluence documentation to derive my conclusions about what Automation for Confluence does with branches, conditions, and smart values.)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events