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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.