Skip to main content
Skip table of contents

Jira Automation

Use the Edit Apwide Booking action Jira Automation to update existing booking information automatically. This action edits booking values such as the start date, end date, and assigned resource.

You can use this action to keep bookings in sync with changes in related work items. For example, when a parent work item changes status, all linked bookings can be updated automatically


Requirements

  • Access to Jira Automation.

  • Familiarity with creating automation rules and using smart values.


Add the Edit Apwide Booking Action

  1. Create or edit an automation rule in Jira Automation.

  2. Select a trigger for the rule (for example, Manually triggered).

  3. Select Add component or Add to branch.

  4. Search for and select Edit Apwide Booking.

  5. Configure the fields:

  • Work item: The issue whose booking field you want to update.
    Example: {{issue.key}} or {{triggerIssue.key}}

  • Booking start: New booking start date. Supports smart values.
    Example: {{now.plusBusinessDays(9)}}

  • Booking end: New booking end date. Supports smart values.
    Example: {{now.plusBusinessDays(15)}}

  • Resource name: The resource assigned to the booking. Must exist in the Booking Flow.

image-20251119-120711.png

Example of Edit Apwide Booking Jira Automation Action

Important
If conflict detection or auto-approval is enabled in your Booking Flow, you may need to transition the work item after the booking is updated.

Use a separate Transition work item action in the rule. This step is not handled by the Edit Apwide Booking action.


Tracking Changes

After the rule runs, you can verify what happened by:

  • Reviewing the automation rule log.

  • Checking issue activity in the work item.


Use Case Example

A company manages a fleet of shared vehicles.

When a vehicle requires repair, all overlapping bookings must be canceled. A new booking is created for the repair period and linked to the repair work item to block the vehicle.

A Jira Automation rule runs when the repair status changes. The rule:

  • Cancels affected bookings.

  • Notifies reporters so they can book another vehicle.

  • Updates or creates a blocking booking using the Edit Apwide Booking action.

As a result, the vehicle cannot be booked during the repair period, and availability remains accurate without manual updates.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.