Confiform generate Jira Ticket from Form and get reference to the Ticket in the Data
Asked by Maximilian Herbert:

Hey there,  

pretty sure this question got placed very often but unfortunatly nothing helped me so far.  

Here's what i want to do and already did:  

I created a form and multiple field definition in it.

I added an IFTTT to create a jira-ticket triggered by the event "onCreate"  

Added a table view at the end of the page to see all entries.

Here comes the Problem:

I want to add the jira ticket to the entrys of the formular. So I defined one more field defintion with the name"jira ticket" and set it to be hidden via rule

In the IFTTT where I created the jira-ticket I added a custom name for the action result "iftttResult_RJT"

I created another IFTTT which I set up as follows:

* Event: onCreate
* Action: Create / Update Confiform Entry
* Parameters to set on the entry: JiraKey=\[iftttResult_RJT\]  

When I create an entry now it gives an error and says that all required fields have to be filled. It creates the entry tho but with no link to a Jira Ticket.  
Any ideas what I did wrong?


Answers:
author: Alex Medved _ConfiForms_
body: Hi

You are missing the entryId=\[entry.id\] in your parameters tp perform an update

```
entryId=[entry.id]&JiraKey=[iftttResult_RJT]?
```

Alex

comments: author: Maximilian Herbert
body: Hi Alex,  
unfortunatly I still get an error when I fill in the form which says  
'FieldDefinition1' is required to be set, 'FieldDefinition2' is required to be set,......  

<br />

<br />


author: Alex Medved _ConfiForms_
body: Do you mind sharing your configuration here or opening a [support ticket with us](https://wiki.vertuna.com/display/VERTUNA/Support+Request+Form) if that feels more comfortable?


author: Maximilian Herbert
body: So i got rid of the error - missed to put in the reference to the form in the IFTTT. But still theres no connection to the jira ticket in the entry...  


author: Alex Medved _ConfiForms_
body: Why do you need to put a reference to the form!? It takes the current by default

Sorry, I cannot help without seeing what you have (just by reading your text responses)


author: Maximilian Herbert
body: Hi Alex,  
I finally found the solution. Here are the things I did (better said did wrong):

1. When setting the custom name for the action (in the IFTTT Macro that creates Jira Ticket) I named it "iftttResult_RJT" which is obviously doubling the "iftttResult" part. So i renamed it to RJT only.
2. I dont know why but in the entry update IFTTT the "parameters to set on the entry" have to be like this entryId=\[entry.id\]\&JiraKey=${iftttResult_RJT} - putting the last part like this "JiraKey=\[iftttResult_RJT\]" is somehow not working.
3. In the entry update IFTTT I also had to set the reference to form and its location although the macro is in the body of the Form Definition...

You really helped me again tho - the part with the entryId=\[entry.id\] was crucial.


author: Alex Medved _ConfiForms_
body: The only thing I can think of is that you are using a very very old version of ConfiForms plugin... (to explain the discrepancies)

Alex


author: Maximilian Herbert
body: Yeah that could be. Thanks again for your help tho :)


Tags: confiforms

confluence-cloud

server