Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


What is the best/proper way to test ActiveObjectsUpgradeTask classes?


Hello community, our plugin uses some ActiveObjectsUpgradeTask classes to migrate our data from one version of the connector to the next one.

We would like to have some automated tests to ensure they will run as expected when the plugin is upgraded as recommended in this official document. This document, however, misses specifying a recommended way, technique, or API for doing so.

Isn't there anything similar to the integration tests that can help to accomplish this?

Otherwise, what would be the preferable way of doing it, considering we would like to cover all supported DB engines by Jira?

1 answer

1 accepted

0 votes
Answer accepted
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 17, 2023

We were in the same situation many years ago, and we tested it manually. You can enforce a migration by:

  1. stopping Jira
  2. setting the schema version to the "old version" in the database
  3. starting Jira

Upgrade tasks are "debuggable" like any other piece of code. We also wrote some basic  tests with mocked dependencies and also added consistency checks. For example, we compared the data in the source with the data in the target and threw an exception if they didn't match.

It worked well, ,but it was a long time ago.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events