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=@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?
Hi Davin,
What I did in one of my workflows is to record the previous version in one variable that I can reuse at the next approval.
E.g. 1st approval:
{set-metadata:oldver}@version@{set-metadata}
Following approvals:
https://confluence.<servername>.com/pages/diffpagesbyversion.action?pageId=@pageid@@&selectedPageVersions=@version@&selectedPageVersions=@oldever@
{set-metadata:oldver}@version@{set-metadata} // for the next round
Matteo
Hey Matteo, this is a good workaround and it works exactly how I needed it to. But a direct approach like the "increment-metadata" macro would be useful for complex workflows.
But again, this is a great workaround and thank you for this solution!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Currently we do not have the ability to decrement a metadata value. The solution suggested by @Matteo Gubellini _SoftComply_ is the approach we would recommend.
Do keep in mind that any user of Comalatech products can get help from our Customer Success team via https://support.comalatech.com
Kind regards
James
Senior Product Manager
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.