The form at the top of this page - if moved to a public space - will allow someone to anonymously submit a confiform and create a Jira ticket with a reporter of ECMWF PRC and an assignee of Data Services.

Note that the table of results is purely for debugging etc, and also won't show any Jira refs when this page is public.

Form



{
        "serviceDeskId": 1,
        "requestTypeId": 53,
        "requestFieldValues": {
            "summary": "[entry.summary.escapeJSON]",
            "description": "[entry.email.escapeJSON] says [entry.description.escapeJSON]"
        }
}




Results

Form 1



Form 2

plain

key

key.asJSON.key

How does this work?

form is set to allow anonymous submissions

form has it's own fields as usual, plus a Jira issue field (that the user doesn't / shouldn't see, i.e. don't include it in the registration macro)

form has 3 IFTTTs which run when the form is submitted and the record is created

  1. the first one runs when the record is created and creates a Jira issue using a web service action (web services are configured in admin area of confluence and should use a service account as credentials, i.e. don't not use the 'create Jira issue' action); the json within the IFTTT is what creates the ticket in the right place in Jira with the right info; the ticket is created and the new Jira ticket ref is sent back to this form as the IFTTT result (which you ideally should give a var name to in the IFTTT config)
  2. the second IFTTT - of type text - also runs when the record is created but after the first IFTTT because of their placement, updates the 'jiraMasterAsText' issue field in the newly created record when it gets the Jira ticket json response back from the first IFTTT (which you can reference using the var name from the first IFTTT result, prepended with iftttResult_); it must have 'Bypass field restrictions and record ownership status' ticked since the person using the form is anonymous and isn't allowed to update fields in an existing record
  3. the third IFTTT - of type Jira - which also runs on create and after the first two due to placement, is similar - it reads the json text value from the newly populated jiraMasterAsText field and extracts just the json from it and saves it

For info, it is not possible to combine steps 2 and 3 (like you can if using the IFTTT create Jira action); this has been confirmed by the developer.