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:
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.”
Web request URL:
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:
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.
Start time:
{{now.plusBusinessDays(1)}}
End time:
{{now.plusBusinessDays(1)}}
Additional fields:
{
"fields": {
"Environments": [{{webResponses.last.body.items.id}}]
}
}
Need Assistance?
For support with integrating Golive and Jira Automation, reach out to our Customer Portal.