Skip to main content
Skip table of contents

Create a Booking on a Specific Environment

This guide covers a specific use case where Jira Automation is configured to create an Environment Booking issue in Jira.


Populated Fields

In this example, the following fields are automatically populated by Jira Automation:

  • Environments: A Golive custom field, filled with “eCommerce Staging” and “eCommerce Production” environments.

  • Start time: Today’s date + 1 business day.

  • End time: Today’s date + 3 business day.


Requirements

Golive Cloud must be installed on Jira Cloud.

Important

This example is not compatible with Jira Data Center.


Configuration Steps

This is the setup in Jira Automation for Jira Cloud:

image-20241107-114040.png

Automation Configuration

Step 1: Set the Trigger

Determine the event in Jira that will trigger the automation.

Step 2: Send Web Request

Retrieve the option ID(s) for the Golive custom field Environments that correspond to the environment names “eCommerce Staging” and “eCommerce Production.”

image-20240913-155839.png

Web request URL:

TYPESCRIPT
https://golive.apwide.net/api/customfield/environment/selectable?projectKey=EM&customfieldName=Environments&environmentName=eCommerce%20Staging&environmentName=eCommerce%20Production

Info

Update projectKey, customfieldName, and environmentName parameters as needed. Be sure to encode your Web request URL if it contains spaces or special characters.

Headers:

CODE
api-key: <your-token>
accept: application/json

Info

To learn more about generating a Golive API Token, refer to the Rest API documentation.
To learn more about the Golive Custom Field API, refer to the Environment Custom Field Rest API documentation.

Step 3: Create the Issue

Create a new Jira issue with “eCommerce Staging” in the Environments field.

image-20241106-174832.png

Start time:

JSON
{{now.plusBusinessDays(1)}}

End time:

JSON
{{now.plusBusinessDays(3)}}

Additional fields:

JSON
{
    "fields": {
        "Environments": [{{webResponses.last.body.items.id}}]
    }
}


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.