How to manipulate Event Reference values in Comala Document Management?

davin May 11, 2021

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?

3 answers

1 accepted

2 votes
Answer accepted
Matteo Gubellini _SoftComply_
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 Leaders.
May 11, 2021

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

davin May 11, 2021

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!

0 votes
James Conway
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 Leaders.
May 12, 2021

@davin 

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

0 votes
davin May 11, 2021

@James Conway would appreciate your guidance here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events