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

How can I add a linebreak to a scripted field?

I'm iterating over linked issues and I would like to have line breaks after each element. Since the field is technically a multi line field I was hoping it was possible but I've been failing. This is what I tried:

value += mykey + " - " + status + " \n ";

Any ideas how this might work?


3 answers

1 accepted

0 votes
Answer accepted

I thought it would be ridiculous to even try but this works:

value += mykey + " - " + status + " <br> ";

This works for me:


    subtask_Names+= issue.getKey() + ", " + issue.summary + " \n <br/>";

0 votes

In my case (scripted field type "Labels") solution is HTML tag:

string = "first_line" + "<p>" + "second_line"

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

342 views 1 3
Join discussion

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