Confiforms: IFTTT CopyPage returns wrong page object

Dirk Eyfrig March 23, 2023

According to the description provided in the documentation, the return value should be the page object of the copied page. Unfortunately in confiforms 3.3.1 it does not return the page object of the copied page (aka the new page) but the one of the page that has been copied - which does not make any sense.

 

Does anyone have an idea how to access the page object of the new page e.g. in order to change the page title or similar?

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
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.
March 23, 2023

Hi @Dirk Eyfrig 

Do you have you IFTTT to copy page with an option to copy "children" enabled?

Alex

Dirk Eyfrig March 23, 2023

Yes, I do.

Alex Medved _ConfiForms_
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.
March 23, 2023

OK, I see 

Checking the code we can confirm it is a bug - the API we use does not report correctly the page

We will look into alternatives to see what can be done and how to figure out the page that has been created using this "deep copy" API method (complexity is in the page title conflict resolver Confluence uses... so the copied page might have a different name)

Alex

Dirk Eyfrig March 23, 2023

Would it work correctly when the "include children" option is unchecked?

Alex Medved _ConfiForms_
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.
March 23, 2023

Yes, it does

Dirk Eyfrig March 23, 2023

OK, then this might be a way to move forward for me. 
Thank you, Alex.

Dirk Eyfrig March 23, 2023

Hi @Alex Medved _ConfiForms_ ,

unfortunately copy page does not work in my case either.

When copying a page within a the same space, it claims that a page with the given name already exists in that space. Renaming mechanisms as implemented when performing a manual copy is not implemented.

This makes the entire copy page functionality rather useless...

Alex Medved _ConfiForms_
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.
March 23, 2023

That is quite a bold and strong statement and I am not here to change your mind. Useless it is...

The idea of a copy page IFTTT is to copy a page that has a title that contains some references via [entry.field_name] notations so these will be processed against the current record and that will make a unique title

http://recordit.co/p6XL1EoQXg

Alex

Dirk Eyfrig March 26, 2023

Hi Alex,

indeed you changed my mind...

I haven't been aware that one may use [entry.field_name] notations in the page title - that's an important game changer! 

Would be great if this would be documented somewhere where a user can find it, e.g. on https://wiki.vertuna.com/display/CONFIFORMS/Configuring+ConfiForms+IFTTT+actions+and+rules#ConfiguringConfiFormsIFTTTactionsandrules-CopyAttachment.

Alex Medved _ConfiForms_
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.
March 27, 2023

Good point. We will update the docs

Like Dirk Eyfrig likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events