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:Ā 

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 Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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.

 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events