The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

JIRA behavior pre-populated description with table

Szymon F
September 17, 2019

I have a prepopulated description in JIRA issue with the table as follows:

 

def desc = getFieldById("description")

def defaultValue = """h1. Sample Table Template:

||X Y Z||Q A Z)||

||Test1 Row|?|?|

||Test2 Row|?|?|

||Test3 Row|?|?|""".replaceAll(/ /,'')

if (!underlyingIssue?.description) {

desc.setFormValue(defaultValue)

}

Can I have the table with the space between words in rows and columns?

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Szymon F
September 23, 2019

Deleting 

.replaceAll(/ /,'')

solves the problem

TAGS
AUG Leaders

Atlassian Community Events