Automatically Prefill Table

Automatically Prefill Table

This guide explains how to automatically prefill tables in Jira issues.

Step 1: Enable Synchronization for Your Project

To begin, go to the Synchronization tab in the Quick Tables plugin settings and add your Jira project.
This step is required to enable the “Quick Tables Sync” custom field, which will be used to store and display table data automatically.

Step 2: Retrieve Your Template ID

Navigate to the Templates tab in Quick Tables.
Find your desired template and click the info icon next to it. In the information panel, you'll see the template ID and template information:

image-20250424-130251.png
image-20250424-155415.png
Template information (example)

Copy your Body Data - object contained with the bodyData variable.

In this example, the template is configured with three columns: Col1, Col2, and Col3. Be sure to adjust the column names and values to match your specific template.

The Body Data contains the following information:

  1. tableData - an array of rows in the table, with each array element being an object containing properties corresponding to the table's columns. Each property must have the appropriate data type, as specified in this window; otherwise, it may not display correctly.

  2. templateId - the ID of the created template, which marks the template to be used for displaying this table.

Step 3: Create an Automation Rule for Prefilling the Table

Navigate to your Project settingsAutomationCreate rule.

Set up a new rule with the following configuration:

  • Trigger: Issue created (or Work item created, depending on your Jira instance)

  • Action: Edit issue
    Add the Quick Tables Sync field and paste the Body Data you prepared earlier.
    Modify this data to match the content you want to be prefilled each time an issue is created.

2.png
{ "data": { "tableData": [ { "Col1": "string1", "Col2": "string2", "Col3": "string3" }, { "Col1": "string4", "Col2": "string5", "Col3": "string6" } // Add more rows as needed ], "templateId": "###########" // Replace with your actual template ID } }

Step 4: Test the Result

Now, create a new issue in your project and verify that the table is automatically populated with the expected data.

3.png

The Quick Tables Sync field can be removed from the issue view screen if you don't want users to see it, but it must remain available on the edit screen for the automation to function correctly.

In this example, we used Jira Automation because it’s built-in and easy to use. However, if your issues are being created by an external system (e.g., via API), the same JSON structure can be used to prefill the table at the time of issue creation.