Confiform intake receiving ${iftttResult_JIRAID} back from JIRA
Asked by Gabe Belknap:

Hi All,

I have built a number of confiform intake pages that connect to JIRA to create a Key, and then mail the user a confirmation that includes that key.

For some reason, sporadically, rather than getting a Key back, we get ${iftttResult_JIRAID} and of course a Jira Key is not created. The form emails the user back saying it was a success, but it wasn't.

When we submit the exact same request the next time, we get a valid Key.

Is there a rule or something that I can add into my page to ensure a valid Key is returned before it finishes off the process and emails the requester etc.

Thanks in advance.

Gabe


Answers:
author: Alex Medved _ConfiForms_
body: Most probably your users who submit the form have no permissions to create Jira issue (integration goes through application link)

Alex

comments: author: Gabe Belknap
body: Hi Alex, thanks for the quick response.

JIRA has been setup to allow anonymous create. It also works for the same user when they try again a few mins later with the exact same details as the original request.


author: Alex Medved _ConfiForms_
body: ok, this is getting more interesting

have you set your IFTTT which attempts to create an issue in Jira to not report the errors (parameter)?

Alex


author: Gabe Belknap
body: HI Alex, here are the screen shots..that way you can see it all.

![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/137862i0907CD70A79F6876/image-size/large?v=v2&px=999 "Capture.JPG")![IFTTT.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/137861i5A089333F2FDB1C4/image-size/large?v=v2&px=999 "IFTTT.JPG")


author: Gabe Belknap
body: Hey Alex

So for the fun of it, I logged out of confluence and was able to submit without issue, anonymously.

When I unchecked Do not report errror, confluence wouldn't complete and I was provided the error message "No permissions to save/update current record".

I then logged in and was able to submit without issue.

I am not sure if that helps at all, but it seems weird I could complete the process with the Do not report error checked but not when unchecked.


author: Gabe Belknap
body: I just noticed that it actually created the JIRA for those instances where I received the No Permissions error, however it did not send me any email advising of the submission.

I am so confused.... lol


author: Alex Medved _ConfiForms_
body: You need to set "Bypass field restrictions and record ownership" option

This is because you are attempting to update ConfiForms record with IFTTT rule and your anonymous users dont really own any records (anonymous users cannot edit records, as they dont own a record to own)


author: Gabe Belknap
body: That makes complete sense. Do I leave Do not report error as checked?

Thanks so much Alex


author: Alex Medved _ConfiForms_
body: I don't think it's a good idea to set this option and silently ignore the errors...

and then spend hours trying to understand what is going on. Unless you don't care if the IFTTT was successfully executed or not and just want to make sure the process doesn't stop on error


author: Gabe Belknap
body: LOL... Good point.

Let me make both changes and advise back.

Thanks again


author: Gabe Belknap
body: Hey Alex

I made the changes this morning and things are looking much better now, thank you .

A couple of folks did get an error today, starting with "Unexpected error while saving the record.....

Could this simply be a result of a connection between Confluence and JIRA being interrupted?


author: Alex Medved _ConfiForms_
body: ConfiForms intentionally does not report error details to non administrators and the actual problem is logged in the Confluence server logs.

[Feel free to open a support ticket with us](https://wiki.vertuna.com/x/S4GW) and share the logs there, privately

Alex


author: Gabe Belknap
body: Hey Alex

Updating those check boxes has fixed most of the issues, although I have found a new one.

On my intake I have textarea's and have found that if the user has a new line created in that text area the intake errors out. If no new lines, it submits fine.

Are you aware of any way of updating the confiform part of the field to remove any new lines, etc. before the intake attempts to create a JIRA?

Thanks


author: Gabe Belknap
body: Never mind ...i forgot the escapeJSON


Tags: confiforms

confluence-server

server