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

GAVIN Benn 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": "ZZZNBNCNS"}, "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 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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