public class

UpgradeTask_Build552

extends LegacyImmediateUpgradeTask
java.lang.Object
   ↳ com.atlassian.jira.upgrade.AbstractUpgradeTask
     ↳ com.atlassian.jira.upgrade.AbstractImmediateUpgradeTask
       ↳ com.atlassian.jira.upgrade.LegacyImmediateUpgradeTask
         ↳ com.atlassian.jira.upgrade.tasks.UpgradeTask_Build552

Class Overview

Upgrade task to convert Label customfields to system fields. The upgrade task looks for custom fields called 'Labels' or the equivalent in other languages and will migrate their data to the new Labels system field. If there's several custom fields called 'Labels' they'll all be merged into the system field regardless of their context. All other labels custom fields will simply be switched over to the new core labels custom field definition.

This upgrade task will also update issue navigator columns, search requests, gadget configurations and delete any values stored in the custom field values table for labels custom fields.

Summary

Constants
String CF_ENTITY
String CF_VALUE_ENTITY
String LABELS_CF_KEY
String LABEL_GADGET
String NEW_LABEL_GADGET
Public Constructors
UpgradeTask_Build552(OfBizDelegator ofBizDelegator, LocaleManager localeManager, ColumnLayoutManager columnLayoutManager, JqlQueryParser jqlQueryParser, JqlStringSupport jqlStringSupport, CustomFieldManager customFieldManager, I18nHelper.BeanFactory beanFactory, FieldScreenSchemeManager fieldScreenSchemeManager, FieldLayoutManager fieldLayoutManager, FieldScreenStore fieldScreenStore, CachingLabelStore cachingLabelStore, CachingSearchRequestStore cachingSearchRequestStore, CachingPortletConfigurationStore cachingPortletConfigurationStore)
Public Methods
@Nullable String dependsUpon()
Return the Upgrade task id of another upgrade task that must be run prior to this task.
void doUpgrade(boolean setupMode)
String getBuildNumber()
String getShortDescription()
[Expand]
Inherited Methods
From class com.atlassian.jira.upgrade.LegacyImmediateUpgradeTask
From class com.atlassian.jira.upgrade.AbstractImmediateUpgradeTask
From class com.atlassian.jira.upgrade.AbstractUpgradeTask
From class java.lang.Object
From interface com.atlassian.jira.upgrade.UpgradeTask

Constants

public static final String CF_ENTITY

Constant Value: "CustomField"

public static final String CF_VALUE_ENTITY

Constant Value: "CustomFieldValue"

public static final String LABELS_CF_KEY

Constant Value: "com.atlassian.jira.plugin.labels:labels"

public static final String LABEL_GADGET

Constant Value: "rest/gadgets/1.0/g/com.atlassian.jira.plugin.labels:labels-gadget/templates/plugins/labels/gadget/labels-gadget.xml"

public static final String NEW_LABEL_GADGET

Constant Value: "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:labels-gadget/gadgets/labels-gadget.xml"

Public Constructors

public UpgradeTask_Build552 (OfBizDelegator ofBizDelegator, LocaleManager localeManager, ColumnLayoutManager columnLayoutManager, JqlQueryParser jqlQueryParser, JqlStringSupport jqlStringSupport, CustomFieldManager customFieldManager, I18nHelper.BeanFactory beanFactory, FieldScreenSchemeManager fieldScreenSchemeManager, FieldLayoutManager fieldLayoutManager, FieldScreenStore fieldScreenStore, CachingLabelStore cachingLabelStore, CachingSearchRequestStore cachingSearchRequestStore, CachingPortletConfigurationStore cachingPortletConfigurationStore)

Public Methods

@Nullable public String dependsUpon ()

Return the Upgrade task id of another upgrade task that must be run prior to this task.

public void doUpgrade (boolean setupMode)

Throws
Exception

public String getBuildNumber ()

public String getShortDescription ()