Forums

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

IFTTT issue with quotes in text field and calling JIRA Key "On Modified"

Jason Walsh
Contributor
August 30, 2021

I have a text area field that users typically copy and paste text from one medium to another. At times, this coped text may have quotes in them (") but if there are more then one (Example: This is a "test") then the IFTTT macro throws an error. I have tried both the .escapeJSON and .replaceCRLFWithBR field extensions with no luck. I feel that this was working before but something has changed and now I'm stuck. Any guidance would be appreciated!

Additionally, I have an IFTTT send email macro set to "on modified" which works and I want to collect the JIRA Key as well. Sample email body looks like this: 

Item Name: [entry.issue] assigned as: $iftttResult_JIRAID

The [entry.issue] field comes through fine, but the JIRA Key call just comes in as it's written above. Again, I may be doing this wrong and just looking for a little clarification. Thanks!

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
August 30, 2021

Could you share your configuration? 
Difficult to say anything without seeing what you actually have 

Alex

Jason Walsh
Contributor
August 30, 2021

text fields are just "Text Area" Confiforms macros. I call them in a No Format macro embedded within an IFTTT "On Created" - JSON is formatted as such item in question is highlighted:

"description": "h1. 1A ANALYST FIELDS \n\n ---- \n\n ||Form Field||Field Value|| \n |Issue Name:|[entry.issue.value]| \n |Potential Issue Entry Date:|[entry.opendate.value]| \n |Product:|[entry.product.label]| \n |Sub Product:|[entry.subproduct.label]| \n |Brief Description:|[entry.brief.replaceCRLFWithBR]| \n etc.

The IftttResult macro is defined as such and appears at the bottom on all my IFTTT macros on my page:

entryId=[entry.id]&jirakey=${iftttResult_JIRAID}

Alex Medved _ConfiForms_
Community Champion
August 30, 2021

In order to handle characters that may break your JSON you need to use the 

[entry.brief.escapeJSON]

I cannot say about the other issue you are having (without seeing real configuration), but it seems to me that "JIRAID" is not available when you think it is (I understand that it is set when record is created, as you have an IFTTT that acts on created and creates Jira issue... which means... if you have an onModified IFTTT rule that relies on this result - it is incorrect... as it is filled only "onCreated" )

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events