Hi Community,
I've built a manual trigger on confluence which when runs, creates a copy of that page on another space with the latest date. However, what I want is that as soon as this copy is created the older versions of that page with older dates should get deleted/archived. I'm trying to create a rule but not sure on what comparison values should I use to compare both the pages to retain the one with the latest date. Right now, the page title is {{content.title}} - {{now.shortDate}} which gives the name of the page with the latest date. Can someone please guide?
Hello @Nikita Aurora
Using the Action Variable can help you.
Try creating a variable containing the page title {{page.title}}:
A second variable containing the date of first publication {{page.dateFirstPublished}} or the date of last update {{page.dateLastUpdated}}:
This will save the information from the triggered page.
After copying the page, create other variables to store the information from the copied page:
Use the {{smart values}} condition:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.