The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Page.Parent.ID Error in Confluence Automation

Nathan Charles Unsworth
May 14, 2025

I have a basic archival rule that runs on the first of every month.  I only want to archive pages (meeting notes) under a specific parent page.  Whenever I run the job, it generates this error:

Screenshot 2025-05-14 095045.png

These are the pages I'm trying to archive:

Screenshot 2025-05-14 095249.png

Here is my automation config:

Screenshot 2025-05-14 095409.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
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 Champions.
May 14, 2025

Hi @Nathan Charles Unsworth 

I reproduced that symptom for inactive pages which have no parent page / content, and...

  • When a Jira automation rule encounters a smart value with no value (or which does not exist), it replaces the value with null, often showing no errors (unless the logic depends upon it).
  • But when Confluence automation encounters the same scenario, it apparently throws an error.  I did not find any open defects for this symptom, so consider submitting it to Atlassian Support.

 

The workaround for your scenario is adding another smart value condition before your test to check that {{page.parent}} exists:

  • smart values condition:
    • first value: {{#if(page.parent)}}{{page.parent.id}}{{/}}
    • condition: does not equal
    • second value: leave as empty
  • smart values condition
    • first value: {{page.parent.id}}
    • condition: equals
    • second value: 656408636

 

Kind regards,
Bill

Nathan Charles Unsworth
May 14, 2025

Thanks, @Bill Sheboy

Like Bill Sheboy likes this
TAGS
AUG Leaders

Atlassian Community Events