ConfiForm Create Subpage with Data

Maximilian Herbert July 12, 2023

Hello together,

 

i have a question concerning the confiform macro. I will try to describe what i want to do by giving an concrete example.

 

I created a ConfiForm formular. When someone fills up the formular and clicks on save the following should happen:

It creates a subpage based on a  template (either a space or a global template) I predefined in confluence. In this template there are various variables. These should be replaced with the input of the ConfiForm formular.

For every newly filled up formular a new Confluence Page is created based on the template and the variables are replaced with the actual Info from the formular. 

 

Is this somehow possible?
Thanks in advance
Max

 

 

1 answer

1 accepted

1 vote
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.
July 12, 2023

Hi @Maximilian Herbert and welcome to this community

Yes, ConfiForms can use templates from Confluence as a templates to create the pages for you

However, you will need to adjust the templates to either use ConfiForms Field macros instead of variables or the [entry.field_name] notations for dynamically set contents

https://wiki.vertuna.com/display/CONFIFORMS/Using+ConfiForms+app+as+template+engine+to+create+pages+in+Confluence

Alex

Maximilian Herbert July 12, 2023

Hey @Alex Medved _ConfiForms_ ,
thanks for your quick response :)

 

So basically I would have to change my template in confluence and replace the variables [$variablexyz] with [entry.fieldxyz_name] ?

But how do I reference / call this template in the confiform makro?
I found out that I could put the space template in the IFTTT body [template.mytemplate] but somehow this is not working for me. I cant access the Template which I defined in the space.

Maximilian Herbert July 12, 2023

Edit: I can access it but it just puts a link to the Template in and does not create a page based on that template 

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.
July 12, 2023

You should not be adding a link... you should have a [template.YOUR_TEMPLATE_TITLE] instruction in the ConfiForms IFTTT

Like Maximilian Herbert likes this
Maximilian Herbert July 12, 2023

DANG! I found the mistake - if you put in brackets you need to watch out that it doesnt automatically convert into a link. It works now!!! Thank you so so so much!!!!!

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.
July 12, 2023

Yes, on server/dc version of Confluence the editor may “autolink” this… ctrl+z should be able to help if that happens 

Alex

Like Maximilian Herbert likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events