Skip to main content
Skip table of contents

Sync Attributes Between Environments of the Same Application

Golive does not support Application-level attributes. This automation keeps Environment attributes in sync across all Environments that belong to the same Application.

In this guide, you’ll learn how to use Jira Automation and Golive Automation to automatically apply changes made to an Environment attribute to all existing Environments of the same Application.

When an Environment attribute is updated in Golive, the automation:

  1. Detects the change.

  2. Sends the update details to Jira Automation.

  3. Updates the same attribute across all related Environments.


Requirements

  • Golive Cloud installed on Jira Cloud.

  • Jira Administrator permission to manage Jira Automations.

  • Golive Administrator permission to manage Golive Automations.


Configuration Overview

This setup uses two automations that work together.

Step 1: Jira Automation

The Jira automation:

  • Receives Environment update information from Golive.

  • Checks if the updated attribute should be synched.

  • Identifies the related Application.

  • Retrieves all Environments linked to that Application.

  • Updates the selected attribute for each Environment.

Step 2: Golive Automation

The Golive automation:

  • Triggers when an Environment is updated.

  • Sends the update details to Jira Automation using a webhook.


Step 1: Create a Jira Automation Rule

Create a new Jira Automation rule with the following configuration:

image-20260107-112113.png

Jira Automation Configuration

Trigger: Incoming Webhook

This rule is triggered by the Golive Automation in the Step 2.

image-20260107-112904.png

Action: Create variable

Define which attributes should be synchronized.

image-20260107-113024.png

Variable name:

CODE
syncFields

Smart value:

CODE
["App Criticality","App Owner"]

This example synchronizes the App Criticality and App Owner attributes. Adjust the list as needed.

Condition: {{smart values}} condition

image-20260107-113444.png

First value:

CODE
{{syncFields}}

Second value:

CODE
{{webhookData.updatedField}}

Action: Send web request

Retrieve all Environments linked to the Application.

image-20260107-113707.png

Web request URL:

CODE
https://golive.apwide.net/api/environments/search/paginated?applicationName={{webhookData.applicationName}}

HTTP method: GET

Web request body: Empty

Important

Enable Delay execution of subsequent rule actions until we've received a response.

Headers:

Action: Create variable

Store the list of Environment IDs returned by Golive.

image-20260107-114006.png

Variable name:

CODE
environmentList

Smart value:

CODE
{{webresponse.body.environments.id.asJsonStringArray}}

Action: Log action

Log the Environment IDs to the audit log. This helps with validation and troubleshooting.

image-20260107-114241.png

Branch Rule: For each smart value

Use Advanced branching to update each Environment individually.

image-20260107-114347.png

Smart value:

CODE
{{webresponse.body.environments.id}}

Variable name:

CODE
environmentId

Action: Send web request

Update the attribute for each Environment.

image-20260107-114454.png

Web request URL:

CODE
https://golive.apwide.net/api/environment/{{environmentId}}

HTTP method: PUT

Web request body: Custom data

Custom data:

CODE
{
  "attributes": {
    "{{webhookData.updatedField}}": "{{webhookData.newValue}}"
  }
}

Headers:


Step 2: Create a Golive Automation Rule

Create a new Golive Automation rule with the following configuration:

Info

For more information, refer to the Trigger Custom Webhooksdocumentation.

image-20260107-115231.png

Golive Automation Configuration

Event: Environment updated

  • Triggers when an environment is updated.

  • (Optional) Add filters to restrict it to specific Environments (e.g., only ERP).

Endpoint: POST <Jira Automation incoming webhook>

Ensure to reuse the trigger information from the Jira Automation you created in Step 1. You must add the following Headers:

Content-type:

CODE
application/json

X-Automation-Webhook-Token:

CODE
<token from your Jira Automation trigger>

Custom Payload

CODE
{
  "Environment_name": "{{environment.name}}",
  "Application_name": "{{environment.application.name}}",
  "Updated_field": "{% for change in environmentChanges %}{{change.field}}{% endfor %}",
  "New_value": "{% for change in environmentChanges %}{{change.to}}{% endfor %}"
}

 


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.