Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Line break in SIL

It may sound trivial, but what is a proper way to put a line break inside a string in SIL script?


I'm trying to add a multiline description to issue, but I don't want to use "\\" sign. I want a proper line break, so that when user will edit the comment he will see:

this is line one
this is line two

but not:

this is line one \\ this is line two

5 answers

1 accepted

7 votes
Answer accepted

Hi Blazej,

Try this one:

"string" + "\n" + "string"

Thanks, that's exactly what I've been looking for smile

Hi Blazej,

My answer comes a little late, but you can also  escape the slashes (like below):



Best Regards,

Well, that's what I've tried, but when user edits such comment he sees:


And I want him to see:



What is more annoying, double slash doesn't play well with other special markups. Fo example if I want to put a line between two lines I would define a script like this:

string my_comment = "String \\\\ ---- \\\\ String";

Yet, what I achieve is:



The same thing done by the following code:

string my_comment = "String\n----\nString";

works properly:



So I guess "\n" > "\\\\" smile

Ok, I got your point. smile

If this used to work, I can't get it to work currently with JIra Description field sad

\n or \\ doesn't work for that.


Hi Jari,

Does it work when you try to put it into other text fields?

Paste your code here - maybe there is some error in the code itself, and we might find it together smile



does anyone have a solution for making two line breaks in a row? Like this:

Unfortunately /n/n/n does not work :(.


"This is line one\n\n\nthis is line four" should work

Unfortunately not :(


2017-11-23 11_28_25-[TEC-4] Test JIRA - JIRA.png

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

243 views 7 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you