Skip to main content
Skip table of contents

Select an Environment Using the Environment ID

This guide covers a specific use case where Jira Automation is configured to automatically select the target Environments for Change Requests (Jira issues) based on the type of change defined in the Promotion Path field. For example, selecting Environments for changes like versions, patches, or production fixes.


Requirements

Golive Data Center must be installed on Jira Data Center.

Important

This example is not compatible with Jira Cloud.


Configuration

This is the setup for Jira Automation:

Automation Configuration

Step 1: Set the Trigger

Trigger: Field Value Changed.

This automation rule is triggered whenever the drop-down field Promotion Path is updated.

Step 2: Add a Condition

Condition: Field Value Equals

Specify a condition to check if the Promotion Path value is set to Production Fix.

Step 3: Update the Target Environment

Update the "Environment(s)" custom field (ID 11'000) with the Environments "eCommerce Test" (ID 56) and "eCommerce Staging" (ID 476).

Additional Fields:

JSON
{
    "fields": {
        "customfield_11000": ["56", "467"]
    }
}


Need Assistance?

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.