Forums

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

Prevent '\r' string being read as new line char when saving to Jira Summary field

Adrian M
Contributor
July 7, 2025

I have a confiforms field named Summary that saves to the Summary field in Jira.

When the content/value of that field contains a \r or \n in it, the form throws an error. 

Example:

Input = Reset required for D2-XXYYY\rightnow-p3

Error = {"errorMessages":[],"errors":{"summary":"You must specify a summary of the issue."}} (Ref: e5fc8613-031a-46cb-9f40-dfb4079df07e)

However I can create an issue directly in Jira that contains \r in the summary field without an issue.

How to I prevent \r and \n in the field string value from being read as a new line chars in confiforms so that it avoids throwing an error?

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
July 7, 2025

How is your summary field mapped in the JSON mapping? Are you using escapeJSON function to ensure the value gets escaped if necessary when it contains characters that can potentially break the mapping?

Adrian M
Contributor
July 7, 2025

Yes it does use escapeJSON

 "summary" : "[entry.Summary.escapeJSON]", 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events