Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiform generate Jira Ticket from Form and get reference to the Ticket in the Data

Maximilian Herbert
Contributor
July 21, 2023

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?

1 answer

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Champion
July 21, 2023

Hi

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

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

Alex 

Maximilian Herbert
Contributor
July 24, 2023

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,......



 

Alex Medved _ConfiForms_
Community Champion
July 24, 2023

Do you mind sharing your configuration here or opening a support ticket with us if that feels more comfortable?

Maximilian Herbert
Contributor
July 24, 2023

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...

Alex Medved _ConfiForms_
Community Champion
July 24, 2023

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)

Maximilian Herbert
Contributor
July 24, 2023

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. 

Alex Medved _ConfiForms_
Community Champion
July 24, 2023

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

Like Maximilian Herbert likes this
Maximilian Herbert
Contributor
July 24, 2023

Yeah that could be. Thanks again for your help tho :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events