Jira Automation: Adding Rows to STAGIL Table field

Jira Automation: Adding Rows to STAGIL Table field

Jira Automation supports adding rows to a STAGIL table via the “Edit issue fields” action. This allows you to automatically populate a table based on conditions — such as issue creation, component values, or transitions.

Automation setup

1. Create a new rule

  • Select a trigger and condition (if required)

  • Action: Edit issue fields

2. Select the table custom field

Choose your STAGIL table field from the “Fields to edit” section. It will appear as something like: customfield_10347.

3. Paste the correct JSON

In the JSON editor, paste the stringified table structure, using the correct syntax:

✅ Correct format:

{ "fields": { "customfield_10347": "'{ \"values\": [{ 'field-119': \"Get quote\", 'field-120': 11, 'field-140': true }, { 'field-119': \"Get funding\", 'field-140': false }] }'" } }
image-2024-09-18-18-09-52-662 (1).png
Example of correct and incorrect JSONs

Key rules:

Element

Requirement

Element

Requirement

Outer value

Must be a string, wrapped in double quotes

Inner field names/values

Use single quotes

Entire value

Must be a single-line string

Limitation

This method replaces all existing table data.

Each time the automation runs, any previously stored rows in the table will be overwritten with the new values defined in the rule.