Dec-23-2019, 05:11 AM
Hi, Pls help me on the below issue. I have tried a lot, but not getting correct format.
I have a python flask application where I am getting inputs from a User and POST to JIRA application to create ticket.
One of my field is
Expected Input: [in description field, which is multi-line]
testinput1
testinput2
testinput3
Expected output format: [Need in this format for JIRA post rest api process]
\\ntestinput1\\ntestinput1\\ntestinput1\\n
I tried so far,
I have a python flask application where I am getting inputs from a User and POST to JIRA application to create ticket.
One of my field is
description
and it is a multi-line field.Expected Input: [in description field, which is multi-line]
testinput1
testinput2
testinput3
Expected output format: [Need in this format for JIRA post rest api process]
\\ntestinput1\\ntestinput1\\ntestinput1\\n
I tried so far,
b=request.form['description'] # I gave multi-line inputs in this field thru front end UI screen a='''{b}'''.format(b=b) print(a) out=a.replace("\n", "\\n") print(out)