When using Jira Assets to manage your resources in Apwide Booking, you may want to synchronize the selected resources from the Booking field to a standard Jira Assets custom field.
This allows you to:
-
View bookings in Jira Assets: See which booking requests are associated with each Asset object.
-
Visualize bookings in Time Squad: Create advanced timelines with your Assets displayed as swimlanes, making it easier to visualize bookings and resource usage.
This guide explains how to use Jira Automation to automatically synchronize the Booking field with a Jira Assets custom field.
Requirements
-
Booking Flow configured with Jira Assets resources.
-
Access to Jira Automation.
-
Familiarity with creating automation rules and using smart values.
-
Jira Administrator permission if you must create a new Assets field (step 1).
Step 1: Create an Assets custom field
If not already there, create a new Jira custom field with the type “Assets objects”, and make sure it is available in context of your booking request (in can be visible or hidden from your screens).
In the field configuration of this field, make sure you show the same Assets than the ones used in your Booking Flow.
Step 2: Jira Automation Configuration
Create a new Jira Automation rule with the following configuration:
Trigger: Field value changed
The rule will be triggered when the Booking field is created or updated.
You can add a condition to only trigger the rule for the project and work type used by your Booking Flow.
Action: Create variable
Extract the Asset ID from the Booking field.
Variable name:
assetId
Smart value:
{{issue.customfield_XXXXX.id.split(":").get(1)}}
You can find the custom field ID when clicking on the smart value icon and searching for “Booking”.
Action: Edit work item
Update your Assets field with the correct Asset.
Asset field name:
objectId = {{assetId}}
Visualize Bookings in Time Squad
You can also use the synchronized Assets field to display your booking requests in Time Squad, with your Assets organized into swimlanes.
This allows you to create advanced timelines to visualize bookings for meeting rooms, vehicles, equipment, or any other resources managed in Jira Assets.
To configure your timeline in Time Squad:
-
Add your booking requests using a Jira Issues Calendar.
-
Configure the start and end dates of your bookings.
-
Add Assets Swimlanes using the synchronized Assets field.
Each Asset will appear on a separate swimlane, with its associated booking requests displayed on the timeline.
Need Assistance?
For support with Jira Automation with Booking, reach out to our Customer Portal.