Hello,
I'm trying to create a custom link to Page version comparisons that will be mailed to a reviewer for them to easily identify what has changed in the latest version.
The sample comparison link for Confluence is -
https://confluence.<servername>.com/pages/diffpagesbyversion.action?pageId=<PageID>&selectedPageVersions=<CurrentVersionNo>&selectedPageVersions=<PreviousVersionNo>
What I could think of is using event references in the following way -
https://confluence.<servername>.com/pages/diffpagesbyversion.action?pageId=&selectedPageVersions=version@&selectedPageVersions=version-1@
Obviously "@version-1@" is not a valid reference and that is what my question is. How can I decrement the @version@ metadata to use it in this example as that value should be 1 less than the @version@ value.
I came across the "increment-metadata" macro but couldn't seem to find a decrement macro for the same. Is there any other way to achieve this?