Skip to main content
Skip table of contents

Create a Booking on a Specific Environment

In this use case, we’ll cover the creation of an Environment Booking issue in Jira using Jira Automation.


Populated Fields

  • 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 (not compatible with Jira Data Center).


Configuration

This is the setup in Jira Automation for Jira Cloud:

image-20241107-114040.png

Example of configuration in Jira Automation for Jira Cloud

Action: 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.

Action: Create 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(1)}}

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.