How to upgrade

This guide explains how to upgrade Jira Hooks for Bitbucket Cloud to the latest available version, what the upgrade keeps, and what to check afterwards.

New versions reach your workspace in one of two ways:

  • Update: most new versions are installed automatically. You do not need to do anything.

  • Upgrade: if a new version changes what the add-on is allowed to do, for example its permissions, Bitbucket does not install it automatically. A workspace administrator has to perform the upgrade and approve the changes.

For an upgrade, Bitbucket shows an upgrade notification with the date until which the current version keeps working. After that date, the merge checks, the pull request information, and the validations of the add-on stop working until the upgrade has been performed.

Where can I find the upgrade?

Workspace Settings → Apps and Features → Installed Apps → Forge Apps

Before you begin

To perform an upgrade, you must have sufficient Bitbucket workspace administration permissions.

Upgrades are performed directly through the Bitbucket workspace settings and do not require reinstalling the application. There is no planned downtime.

Important

After an upgrade, it may take several minutes until all settings have been fully migrated and become available in the new version. How long depends on the number of repositories in your workspace, see How long the migration takes below.

During this period, some features may temporarily display incomplete data or outdated information. Once the migration has completed, the application will automatically operate with the latest configuration and data set.

While the migration is running, the add-on deliberately does not block merges, so that your teams are never locked out. Pull requests that do not meet your rules can therefore be merged during this period.

For this reason, it is recommended to perform upgrades during a suitable maintenance window or at a time with little pull request activity. No manual action is required after the upgrade has been initiated.

Check the Jira connections

The add-on connects only to Jira Cloud sites with an address in the format https://<your-site>.atlassian.net. If your Jira site uses a custom domain, its *.atlassian.net address is still available and must be used in the Jira connection.

Before you upgrade, open the Jira connections tab in the workspace settings of the add-on and make sure that every connection uses an *.atlassian.net address. Learn more in Jira Connection.

Open the installed Forge apps

  1. Open Bitbucket Workspace Settings.

  2. Navigate to Apps and Features.

  3. Select Installed Apps.

  4. Open the Forge Apps section.

The list displays all installed Forge applications

upgrade.png

Upgrade the application

Locate Jira Hooks for Bitbucket in the Forge Apps list.

If a newer version is available, Bitbucket displays an Upgrade action next to the application.

  1. Click Upgrade.

  2. If Bitbucket lists permissions that the new version needs, review them and approve the upgrade.

Bitbucket then installs the latest available version of the application.

How long the migration takes

Right after the upgrade, the add-on migrates the settings of the workspace and of all repositories in the background. The duration depends mainly on the number of repositories in the workspace, including repositories that never used the add-on. As a guideline:

Repositories in the workspace

Approximate duration

up to 200

about 1 minute

500

about 3 minutes

1,000

about 5 to 6 minutes

5,000

about 25 to 30 minutes

Repositories without settings of the add-on are migrated faster than configured ones. If a repository cannot be migrated at the first attempt, for example because of a temporary limit of the Atlassian platform, the add-on retries it automatically; this can add a few minutes. If the migration cannot be started at all, the add-on starts it again automatically within one day.

What the upgrade keeps

The upgrade migrates your settings to the format of the new version automatically. You do not need to configure anything again:

  • the workspace settings, including the configuration of the Process Guardian, the rules, and the Jira connections

  • the settings of each repository, including the settings for configuration as code

Configuration as code files in your repositories keep working without changes, even if they use keys of an earlier version. The custom merge check Compliance checks stays enabled in the merge check settings of Bitbucket.

The upgrade does not change the price of the add-on or your Bitbucket plan. Custom merge checks that block a merge still require Bitbucket Premium, see Set up and use custom merge checks.

After the upgrade

When the migration has completed, check the following:

  1. Merge checks: Compliance checks is still enabled in the merge check settings of the workspace or of the repositories where you use it. Learn more in How to set the Custom Merge Checks?.

  2. Jira connections: the connections in the Jira connections tab are valid.

  3. Pull requests: open one or two pull requests and check that the validation card shows the expected rules and results.

Key takeaway

Updates are installed automatically. Upgrades are performed by a workspace administrator through Workspace Settings → Apps and Features → Installed Apps → Forge Apps before the date in the upgrade notification; the upgrade keeps your existing settings.