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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.