Forums

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

Bold the text of default description (by Behaviour)

Dan27
Contributor
June 28, 2018

Hi,

I made a behaviour that put inside description (create issue) a default text.

I would like the text will be bold and underlined.

How can I do it?

 

This is my code in Behaviour:

 

def desc = getFieldById("description")
 

def defaultValue = """h3. General OS / DB / Browser / Machine Information:


h3. Scenario Description and steps to recreate the problem:


**

h3. Actual & Expected Results

**

**

h3. Log file information:

 

h3. Additional info (Optional):
""".replaceAll(/ /, '')

 

if (! underlyingIssue?.description) {
desc.setFormValue(defaultValue)
}

 

Thanks!

1 answer

1 accepted

2 votes
Answer accepted
Mark Markov
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 Leaders.
June 28, 2018
Dan27
Contributor
June 28, 2018

Thanks @Mark Markov!!! and how to can I make an empty line ?

(empty line) didn't work

Mark Markov
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 Leaders.
June 28, 2018

It should work, there are no other markup options for that.

Dan27
Contributor
June 28, 2018

@Mark Markov Just write this line between each sentence ??

(empty line) 

Mark Markov
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 Leaders.
June 28, 2018

It really didnt work
but you can create empty line by placing space in unicode  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events