Auto Light Dark
Auto Light Dark
Breadcrumbs

Sync Booking and Assets fields

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.

image-20260319-104432.png
Show the bookings in your Jira Assets

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).

image-20260319-102258.png

In the field configuration of this field, make sure you show the same Assets than the ones used in your Booking Flow.

image-20260319-102413.png



Step 2: Jira Automation Configuration

Create a new Jira Automation rule with the following configuration:

image-20260319-103156.png
Jira Automation Configuration

Trigger: Field value changed

The rule will be triggered when the Booking field is created or updated.

image-20260319-103233.png

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.

image-20260319-103740.png

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.

image-20260319-103315.png

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.

image-20261013-093539.png
Time Squad timeline showing Assets as swimlanes and booking requests

To configure your timeline in Time Squad:

  1. Add your booking requests using a Jira Issues Calendar.

  2. Configure the start and end dates of your bookings.

  3. 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.