Breadcrumbs

Populate Environments from Application + Category fields

This guide covers a use case where Jira Automation is configured to automatically populate the Environments field whenever the Application or Category fields are updated.

image-20260624-172741.png
Environments field is updated whenever Application or Category fields are updated



Requirements

  • Golive Cloud must be installed on Jira Cloud.

  • Three custom fields must be added to your screen:

    • Application of type Apwide Golive Application

    • Category of type Apwide Golive Category

    • Environments of type Apwide Golive Environment

Important

This example is not compatible with Jira Data Center.



Configuration Steps

This is the setup in Jira Automation for Jira Cloud:

image-20260624-165817.png
Full Jira Automation


Trigger: Field Value Changed

This automation is triggered whenever the Application or Category custom fields are updated. You can specify any required additional criteria e.g. work type.

image-20260624-165416.png
Field value changed


Condition: {{smart values}} condition

Add a condition to make sure your Application field is not empty.

image-20260624-165948.png
Condition for the Application field

First value (use your own Application custom field ID)

{{issue.customfield_11088}}


Condition: {{smart values}} condition

Add a condition to make sure your Category field is not empty.

image-20260624-170403.png
Condition for the Category field

First value (use your own Category custom field ID)

{{issue.customfield_11089}}


Action: Find Golive Environments

Use the Find Golive Environments action to retrieve the corresponding environment IDs.

image-20260624-170536.png
Find Golive Environments action

Environment Filter - First criteria

applicationId={{issue.customfield_11088}}

Environment Filter - Second criteria

categoryId={{issue.customfield_11089}}

Filters are case sensitive, make sure you use applicationId and categoryId (with capital i) and your own custom field IDs. You can specify also additional criteria if needed.

image-20260624-170819.png


Action: Edit work item

Use the environment IDs retrieved from the Golive action to update the Environments field.

image-20260624-171444.png
Edit work item action

Additional fields:

{
    "fields": {
        "customfield_10887": {{fetchedGoliveEnvsList.id.asJsonStringArray}}
    }
}



Need Assistance?

For support with integrating Golive and Jira Automation, reach out to our Customer Portal.