Class UpgradeTask_Build76001

All Implemented Interfaces:
UpgradeTask, com.atlassian.upgrade.spi.UpgradeTask

public class UpgradeTask_Build76001 extends AbstractDelayableUpgradeTask
As we are introducing priority schemes this upgrade task will create default priority scheme with all priorities defined on the instance. The process consists of multiple phases:
  1. Create definition of scheme (FIELD_CONFIGURATION and FIELD_CONFIG_SCHEME)
  2. Rewrite all existing priorities into that scheme
  3. Rewrite default priority as scheme's default priority
  4. Set created scheme as default one
Since:
v7.6
  • Constructor Details

    • UpgradeTask_Build76001

      public UpgradeTask_Build76001(QueryDslAccessor queryDslAccessor)
  • Method Details

    • getBuildNumber

      public int getBuildNumber()
      Returns:
      The build number that this upgrade is applicable to
    • getShortDescription

      public String getShortDescription()
      Description copied from interface: UpgradeTask
      A short (invalid input: '<'50 chars) description of the upgrade action
    • isDowngradeTaskRequired

      public boolean isDowngradeTaskRequired()
      Description copied from interface: UpgradeTask
      Flag to claim whether this upgrade task needs an explicit downgrade task to reverse the data changes in Jira-Server. Jira-Cloud always needs corresponding downgrade task.

      If a downgrade is a simple no-op then return false, and JIRA will ignore these changes during a downgrade.

      If you need to actually undo the changes made here then declare true and add a Downgrade Task to the bug fix branch.

      Returns:
      true if an actual Downgrade Task must run to revert these changes, false if downgrade is a no-op.
    • doUpgrade

      public void doUpgrade(boolean setupMode) throws Exception
      Description copied from interface: UpgradeTask
      Perform the upgrade.
      Parameters:
      setupMode - Indicating this upgrade task is running during set up.
      Throws:
      Exception