How to insert formatted table into ticket template?

Sam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 7, 2025

Hello everyone,

I would like to create a ticket template for story tickets in Jira. I already know how to create templates for this purpose. However, in my example below, I want to insert a table into the template. Unfortunately, I am having trouble with the HTML code and can't configure the table even with the help of Copilot. 🥲

Does anyone know how I can insert the table—see example—with all the specifics such as:

- Formatting

- Colors

- Checkboxes

- etc.

into the template?

I am grateful for any tips and would appreciate it if you could support me in my endeavor. ✌️

Best regards and thanks in advance, Sam

IMG_0044.png

1 answer

0 votes
Tomislav Sablic
Contributor
February 7, 2025

You can do this using the ScriptRunner behaviours.

Here is the code example:

def desc = getFieldById("description")

def table = """Please enter your details in the below table -
||Heading 1|||Heading 2|||Heading 3|||Heading 4|||Heading 5|||Heading 6||
| | | | | | |
"""

desc.setFormValue(table)

 

Here is the documentation that you could consult:

https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all

Suggest an answer

Log in or Sign up to answer