Confiforms - IFTTT Integration Rules - onCreated - Create page

MCL December 2, 2022

When creating a page in Confiforms, I have an IFTTT that is being passed to the page being created that contains a code block. Inside of the code block all of the values of the key value json are being wiped clean on creation. 

 

Is there a method to retain the code block in its state prior to creating the page? 

 

 

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.
December 2, 2022

Hi @MCL and welcome to this community

[entry.field_name] references are not wiped out.. they are evaluated agains the record that is used to execute this IFTTT

And the body of the IFTTT is evaluated to process all the references to get the values.

Have a look at asEntryRef function https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions

Alex

MCL December 2, 2022

I may not have explained it well enough, but I have nested IFTTTs, I am trying to pass the IFTTT 2 into the next page to allow for a JIRA ticket to be created. 

Kind of looks like below. I am not collecting the data from the current form, yet passing a form to another page that has the "Create JIRA" functionality embedded. 

 

IFTTT 1 to create the page 

- IFTTT 2 to create the JIRA ticket 

- - IFTTT 2 - Code block 

{ "fields": { "project":{ "key": "[entry.keyName]" }, "parent": { "key": "[entry.key]" }, "summary": "[entry.summary.escapeJSON]", "description": "[entry.description.escapeJSON]", "issuetype":{"name": "[entry.issuetype.label]"}, "labels" : [entry.tag.label] } }

 


New page 

IFTTT 2 - Code Block 

{ "fields": { "project":{ "key": "" }, "parent": { "key": "" }, "summary": "", "description": "", "issuetype":{"name": ""}, "labels" : } }

 

MCL December 2, 2022

I have not yet delved into the virtual functions, would that solve the issue above where the creation of the page is failing to send the values to the new page?

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.
December 2, 2022

Why at all do yoiu want to create a page with inner form? Why not to have a form defined elsewhere and on a created page you will have only a form view (ConfiForms FormView Registrations Control macro)?

Anyway, it is your choice... but the comment I have provided answers your question... use asEntryRef

... { "key": "[entry.id.asEntryRef(entry.keyName)]" }...

etc..

Alex

MCL December 2, 2022

I have a strong distaste for using the "create page from template" pop up menu so I created a page that generates pages for me saving me quite a bit of time. 

 

Reasons im trying this method: 

1. The time to create a mundane meeting minutes page from the template takes on average and extra 3 clicks and I still end up in the "edit page" section that I want to exit out of. 

2. The page isnt dynamically created based on simple questions I want to input at the time of creation. 

 

Thank you very much again for your expedient response. 

MCL December 2, 2022

I like your approach, just getting started with confiforms and had no idea about the formView macro. May need to research how to do that functionality. 

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.
December 2, 2022

So the ConfiForms Form Definition and all the stuff related to the form configuration will be on some dedicated page (the for that creates Jira issues)

And your other form (current one, which creates pages) will still create pages, but that page will have only the ConfiForms FormView Registrations Control macro (that is linked to that form on a dedicated page)

Much easier to maintain later.. otherwise you will have own form on a created page that you need to maintain (for example change the mappings or something like that)

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events