Forums

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

createdContent smartvalue in Confluence Automation?

David Foote
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 3, 2024

Hi all,

I'm using Confluence automation to copy a page from one space to another. However, I would really like to be able to get the page id of the newly created page.

In Jira automation, I'd be able to use a smartvalue like {{createdIssue}} to get something like that.

Does Confluence automation have a similar smartvalue?

1 answer

1 accepted

0 votes
Answer accepted
David Foote
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 3, 2024

I found the answer to this!

It seems that after the copy action completes, the context for all of the {{content}} smartvalues is shifted to reference the newly created page.

I.E, at the beginning of the automation, {{content.id}} returns the ID of the page that the automation triggered on. 

After the copy action, {{content.id}} returns the ID of the newly created page.

 

This is different from how Jira automation works! There, you remain in the same context as the issue you started with; hence the need for the {{createdIssue}} values to get access to the data on the newly created issue.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events