How can I update same confiforms form in multiple confluence spaces?
Asked by Mika Hotti:

Multiple projects are using same Confiforms form in their Confluence spaces. I created confiforms form to each confluence pages. I find out problem how to update the form in multiple spaces. Before I am deep in troubles how to avoid that. Can I create a confiforms form as a template and i just update the template or can I somehow update all forms at one time.


Answers:
author: Alex Medved _ConfiForms_
body: Hi [@Mika Hotti](/t5/user/viewprofilepage/user-id/4979703)

ConfiForms configuration is part of the page storage format. Which means, if you have it in multiple places/pages then you will need to update in multiple pages as you do with any Confluence contents

When you say "same" - have you created a ConfiForms Form Definition on each page and now want to update it on these pages?

Generally, forms are created/defined on central pages and and then used through the ConfiForms FromView Registrations Controls from multiple pages. Collecting data from multiple sources into a centralized place

Alex

comments: author: Mika Hotti
body: Hi [@Alex Medved](/t5/user/viewprofilepage/user-id/4541550)

*When you say "same" - have you created a ConfiForms Form Definition on each page and now want to update it on these pages?*   

Yes -that is the challenge. It is not done yet because I noticed that challenge during piloting the solution.

I am building a solution to manage different development projects in jira. For example forms I created are collecting some data from Developmen projects Jira issues. One form is part of development project monthly report to steering committee. The problem is that we have so many development projects. There is no sense to update forms project after project because of the workload.

Does it make any sense that all confiforms forms are in one confluence space. All project managers open forms from the same place and save it to each development projects own space (diary). So in the form project manages choose the development project she/he is going to report and the space where it should be saved (Development projects diary)

I was also thinking the possibility to to use Confiforms form as a global template. Is it possible?

Mika


author: Alex Medved _ConfiForms_
body: You can set up one form and collect data from different projects into one form if that makes sense

If it does not then you can just make a template, right - but this will not solve the problem if you want to update your forms one day

It could also be a user macro, which is centrally managed and that is what you put on a project page.

Hard to advise anything - depends on what you want to achieve. But what ConfiForms can offer is a split of configuration and view

So, you form (definition) can be in one place and form views and other views can be anywhere else

Alex


author: Mika Hotti
body: One form collects data from on project. I think the best solution is centrally managed macro. How to do it? I have never done centrally managed Confiforms form as a macro. Any links useful links?

Mika


author: Alex Medved _ConfiForms_
body: Just have a page with ConfiForms Form Definition macro and all that belongs to it (field definitions, IFTTT rules, Field definition rules)... and then on a separate page or pages have a ConfiForms FormView Registrations Control macro "pointing it at the page with the macro definition"

Alex


author: Mika Hotti
body: Yes, That's it. That was the solution I was looking for! Thank you.


author: Mika Hotti
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) I have done all that mentioned above:

1. Registration control is in development project confluece page
2. All forms are in one Confluence page.
3. Creating new form works well.

But find out one more problem. How can I define the Confluence page where the form should be saved. I had it in IFTTT intgration rules/parent page as a page Id value but it doesn't work anymore because about 300 development projects are using the same form and each form should be saved on each project's own Confluence page. Perhaps using \[entry.FIELD_NAME\] -but how to do that?

Sorry -I am just tying to learn,

Mika


author: Alex Medved _ConfiForms_
body: Forms data is saved with the page where the form is registered/configured (form definitions are)

I am not sure I get the question
> each form should be saved on each project's own Confluence page.

Are you trying to create a page with ConfiForms and want to create it under some specific parent page? Alex


author: Mika Hotti
body: If I can't define the place where form will be saved dynamically solution does not work for us. One problem solved but now we face another problem. Now I can take care of forms easier. ![Confiforms1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/248424iE5E2C39984F22DD0/image-dimensions/257x338?v=v2 "Confiforms1.jpg") Now filled form goes to "Forms" Confluence space and all project managers should find their form and move it to their own space.


author: Alex Medved _ConfiForms_
body: Is this about filtering the data?

Data will go to a central place, as you have a form defined centrally

But you can always FILTER the data as needed

So, what is the problem right now, really?

Alex


author: Mika Hotti
body: It is not about filtering.  

The main problem is that form I created is formal documentation of development project. In most cases it is a still picture of development project's current situation. This is why it is important to have a formal form. The form is filled once in a month with updated data from Jira. After that it should be archived in our document system.

Development projects have a diary where the forms can be found. Afterwards we can read desissons and risks among other things. Who desided and what.

Confiforms was recommended by one of local Atlassian consultant. Now I find out that forms are difficult to maintain because the forms are in 300 hundred different places or it is complicated to Project managers to use them because I cant define the place where it should be saved dynamically.

Mika


author: Alex Medved _ConfiForms_
body: Why "in 300 hundred different places" if you just can have ONE form that can store thousands of records (projects data)

I dont understand this. Feel free to open the ticket with us and [we can discuss that via call](https://wiki.vertuna.com/display/VERTUNA/Support+Request+Form)

Alex


author: Mika Hotti
body: That was my careless creation in Conflu pages. We have 300 different development projects and all of them are going to have confluence pages of their own.

I have made some changes. Now all forms are in one Copnfluence space. All development project's have a page where are registration controls to use forms.

Creating forms works well now.

The problem is that when project manger fills the form and saves it form appears to 'template' page. It should go to Development projects own space. How and where I can define that?

I will be in touch a week after Easten if I don't find solution before that.

Mika


author: Alex Medved _ConfiForms_
body: If you ask on how to create pages with ConfiForms under a specific root page then this is possible by defining the Parent Page parameter [in the corresponding ConfiForms IFTTT](https://wiki.vertuna.com/display/CONFIFORMS/Configuring+ConfiForms+IFTTT+actions+and+rules#ConfiguringConfiFormsIFTTTactionsandrules-CreatePage)

Alex


author: Mika Hotti
body: I have tried to create parent page definition that works dynamically without success. There is a field in a form where project manager puts correct space and page. Field name is 'Luontisivu' (Add ProjectKey:Page)

I added to parent page definition: \[entry.Luontisivu\]

What went wrong?

I have also tried some other ways without success.

Mika


author: Alex Medved _ConfiForms_
body: Sorry, what when wrong where? Could you share the configuration?


author: Mika Hotti
body: Result is that I find the filled form from the template space, not the development projects space. Form should go to development projects space. I will collect configuration soon.


author: Mika Hotti
body: Configuration;

Space called 'Kehitt?misen dokumentit, KD (Development documents)' includes Confiforms forms. Each form has a own page.

Forms are working fine. They collect data from Jira and Project manager can fill some fields.

Each development project has own space. That space includes page 'Dokumentit ( Documents)' and 'P?iv?kirja' (Diary)'

Documents page includes ConfiForms (FormView) Registrations Control Macro that macro incldes definitions (one example):

* ConfiForms Form name: Muutosesitys
* Page name where the form is defined: KD:Muutosesitys
* Rendering form as: Link
* Label for Registration button \*: Luo Muutosesitys
* No other definitions

On 'Kehitt?misen dokumentit' space there is a page 'Muutosesitys'

Configuration includes:

1. ConfiForms Form Definition' Macro
   1. ConfiForms Form name \*: Muutosesitys

2. ConfiForms Field Definition' Macro
   1. Field name \*: Luontisivu
   2. Field label \*: Luontisivu
   3. Field type: Page/ Blog post
3. ConfiForms Field' Macro
   1. Field name \*: Luontisivu

4. ConfiForms IFTTT Integration Rules' Macro
   1. Event \*: on Created
   2. Choose Action to perform \*: Create a page
   3. Page Title: Muutosesitys \[entry._now.formatDate(dd.MM.yyyy)\]
   4. Parent page : \[entry.LUONTISIVU\]
   5. Labels: Muutosesitys


author: Alex Medved _ConfiForms_
body: Hi

So the field name is Luontisivu or LUONTISIVU?

Also who sets the value for the "Luontisivu" field?

(if it is a "Page/ Blog post" field type then the page id is expected)

Open a [support request with us](https://wiki.vertuna.com/display/VERTUNA/Support+Request+Form), so we can fix solve this faster

Alex


Tags: confiforms

confluence-server

server