This Jira Automation creates an Environment Booking work item from a triggering work item and links the two. It automatically copies the Environments (Golive custom field), Start time, and End time values from the triggering work item.
This ensures bookings are created consistently and removes the need for manual input.
Requirements
-
Golive Cloud must be installed on Jira Cloud
-
A custom work item type is configured with the following fields:
-
Start time: Date-time picker field
-
End time: Date-time picker field
-
Deploy to Environments: Text field containing environment names as a comma-separated list
-
Important
This example is not supported on Jira Data Center.
Configuration Steps
This setup configures a Jira Automation rule in Jira Cloud to create and link an Environment Booking work item.
Step 1: Set the Trigger
Define the event that starts the automation.
For example, trigger the rule when a Deployment Request is transitioned to Approved.
This ensures bookings are only created when the request reaches the correct stage.
Step 2: Retrieve Golive Environments IDs
Use the Get Golive Environments by name action to retrieve the corresponding environment IDs.
-
Source field: Deploy to Environments (comma-separated values)
-
Target field: Environments (Golive custom field)
Make sure to update the custom field ID to match your Deploy to Environments custom field ID.
Environment Names(s):
{{triggerIssue.customfield_XXXXX}}
Step 3: Create a variable
Create a variable to store the retrieved environment IDs.
This variable formats the environment IDs so they can be used when creating the booking.
Variable name:
FindENV
Smart value:
{{fetchedGoliveEnvsbynameList.id.asJsonStringArray}}
Step 4: Create the Environment Booking work item
Create a new Environment Booking work item using values from the triggering work item.
Summary:
Automated Booking for {{triggerIssue.summary}}
Start time:
{{triggerIssue.customfield_10056}}
End time:
{{triggerIssue.customfield_10057}}
Update the custom field IDs to match your Jira instance.
You can also use alternative smart values if needed, for example: {{now.plusBusinessDays(3)}}
Additional fields:
{
"fields": {
"Environments": {{FindENV}}
}
}
Step 5: Link the work items
Link the newly created Environment Booking to the original Deployment Request.
This maintains traceability between the request and the booking.
Need Assistance?
For support with integrating Golive and Jira Automation, reach out to our Customer Portal.