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

1 vote
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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events