Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 to leave whitespace when using Behaviour to create default description text?

Using Behaviours to set default description text, following this example


The problem is that it doesn't leave whitespace under the headings for the user to click in and start typing. I can't figure out how to leave an empty line between headings. Anyone have ideas?

1 answer

1 vote
Leo Community Leader Dec 04, 2019

Hi @Majken_Longlade,

I'm not sure I got your question correctly. but if my understanding right you want one space should be added as a value in new line under heading.

if so you can use like below

\n --> for new line

\t --> for tap space 

def desc = getFieldById("description")

def defaultValue = """How to reproduce
* step 1 \n\t
* step 2 \n\t"""
if (!underlyingIssue?.description) {




Hi Leo,

Thanks that is what I'm trying to achieve, but it's only working in the text view. It's not working in the visual editor.

I'm on Jira Data Center 7.13.9 and using ScriptRunner for Jira version 5.6.8

Any other ideas?

Leo Community Leader Dec 05, 2019


since you set wiki style renderer, will have to find out wiki markup style to achieve this

I haven't worked much with markup styles, following page may give you some idea:

but not sure how far these styles will work with jira




I think the visual editor is just stripping the white space. I tried a few things, they all worked in the text editor but not the visual editor.


I ended up using placeholder text.

Martin S_ I'm New Here Oct 07, 2020

@Majken_Longlade - I just found a solution that works also in the Visual Editor of Jira:

'\\\\'  --> you have to use 4 backslashes in the script to produce empty lines in Jira visual editor :)

Cheers, Martin

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,642 views 22 33
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