Forums

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

ConfiForm to Jira API: Adding the information for the second field to a new line

GAVIN Benn
Contributor
February 10, 2025

Hello,  

 

Is it possible to add a line break / new line to separate the information submitted from ConfiForms when in this format? See location of desired separation marked 'HERE'

 

Output results look like this at present and would like to separate:

Problem Statement Requestor Name: John John  Problem Statement: test

 

 

{ "fields": { "summary": "[entry.summary.escapeJSON]", "issuetype": {"name": "Epic"}, "project": {"key": "xxx"}, "customfield_10004": "Epic Name [entry.title]", "reporter": { "id": "[entry._user]" }, "labels": ["[entry.labels]"], "customfield_13300": "Requestor Name: [entry.requestorName.escapeJSON] HERE Problem Statement: [entry.problemstatement.escapeJSON]" } }

1 answer

0 votes
GAVIN Benn
Contributor
February 13, 2025

I was able to resolve this for anyone that's interested.  Injecting multiple fields into the same 'Text field' works using:

"customfield_13300": "

*Title line*\n[entry.fieldname.escapeJSON] \n\n
*Title line*\n[entry.field name.escapeJSON] \n\n
*Title line*\n[entry.fieldname.escapeJSON] \n\n
*Title line*\n[entry.field name.escapeJSON] \n\n
*Title line*\n[entry.fieldname.escapeJSON] \n\n
*Title line*\n[entry.field name.escapeJSON] \n\n"

Alex Medved _ConfiForms_
Community Champion
February 13, 2025

This is what Jira expects for the field values that you want to have line breaks, correct - it should be passed in as \n

Like GAVIN Benn likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events