Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,265
Community Members
 
Community Events
168
Community Groups

JIRA behavior pre-populated description with table

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

Deleting 

.relaceAll(/ /,'')

solves the problem

Suggest an answer

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

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

190 views 1 6
Read article

Atlassian Community Events