insert page name with automation
Asked by Dietrich Lehr:

I'm trying to use the automation in confluence to send a reminder to review items that haven't been updated in a while, but I cannot get the page name to dynamically populate. I've tried {{page.title}} , {{title.page}} , {{page}} , and {{title}} but none work. The email comes through blank where that variable was.


Answers:
author: Ste Wright
body: Hi [@Dietrich Lehr](/t5/user/viewprofilepage/user-id/3592264)

{{page.title}} should work - this is the [smart value](https://support.atlassian.com/cloud-automation/docs/smart-values-in-confluence-automation/) for page title.

I tested it also, and it works fine for me. What's the rest of your rule look like? A screenshot of it might be beneficial :)

---

**Edit:**I tried this using your Branch - Related Entities - and had the same experience.

So I tried using "for each Page" instead (which allows you to set a last updated period, but not the label parameter) - and it works fine with {{page.title}} in this Branch.

It would appear "for each Page" is the Branch option for this type of Action for now - but I'd recommend raising it as a potential Bug in JAC for further review - do this from here: <https://jira.atlassian.com/secure/Dashboard.jspa>

Ste

comments: author: Dietrich Lehr
body: ![2023-01-19_7-51-56.png](https://community.atlassian.com/t5/image/serverpage/image-id/235326iB7CE03EA35E99596/image-size/large?v=v2&px=999 "2023-01-19_7-51-56.png")

--------------------

No luck with this. It doesn't put anything in there for the {{page.title}}. This is the email I receive

![2023-01-19_7-53-48.png](https://community.atlassian.com/t5/image/serverpage/image-id/235327i43E0A2396E853362/image-size/large?v=v2&px=999 "2023-01-19_7-53-48.png")


author: Ste Wright
body: Hi [@Dietrich Lehr](/t5/user/viewprofilepage/user-id/3592264)

Strange!

I tried this using your Branch - Related Entities - and had the same experience.

So I tried using "for each Page" instead (which allows you to set a last updated period, but not the label parameter) - and it works fine with {{page.title}} in this Branch.

It would appear "for each Page" is the Branch option for this type of Action for now - but I'd recommend raising it as a potential Bug in JAC for further review - do this from here: <https://jira.atlassian.com/secure/Dashboard.jspa>

Ste


author: Dietrich Lehr
body: Now I can't get it to send the email. The CQL query was validated. It works if I remeove the CQL condition. However, I have parent pages working as a folder and get alerted. Thats why I want to exclude certain pages with labels.  

*** ** * ** ***

![2023-01-23_10-28-06.png](https://community.atlassian.com/t5/image/serverpage/image-id/235907i67928941C9D27B2B/image-size/large?v=v2&px=999 "2023-01-23_10-28-06.png")


author: Dietrich Lehr
body: doesn't look like I have permissions to submit a bug request


author: Dietrich Lehr
body: this seems to have fixed the {{page.title}} insert issue. I'm trying to insert a CQL query to exclude pages with a certain label. Can you modify your first response to include the info from the second so i can mark as answer?


author: Ste Wright
body: Done :)

Ste


Tags: cloud