Forums

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

Replace a String with an line break in multi line field

Tobias
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 13, 2021

Hello together, 

we are currently facing a problem in our internal Jira environment. We receive data from an external system and they are not possible to send it with line breaks via the API. The problem here is that we need every new data set in a new line because we have some automation scripts reading this line break. 

So now my question is: How can i replace a String with a line break? Maybe this is something I could implement via ScriptRunner. 

The current format is this: 

Hello\nthis\nis\na\test

And the expected format would be:

Hello
this
is
a
test 

 Are there any possibilities to change the data in Jira internally. 

Thanks for now, have a nice weekend. 

Best regards!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events