com.atlassian.jira.upgrade.tasks
Class UpgradeTask_Build552
java.lang.Object
com.atlassian.jira.upgrade.AbstractUpgradeTask
com.atlassian.jira.upgrade.tasks.UpgradeTask_Build552
- All Implemented Interfaces:
- UpgradeTask
public class UpgradeTask_Build552
- extends AbstractUpgradeTask
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.
- Since:
- v4.2
Constructor Summary |
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)
|
Methods inherited from class com.atlassian.jira.upgrade.AbstractUpgradeTask |
addError, addErrors, addErrors, convertToSchemaTableName, getApplicationProperties, getDatabaseConnection, getDelegator, getErrors, getI18nBean, getOfBizDelegator, isReindexRequired |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CF_ENTITY
public static final String CF_ENTITY
- See Also:
- Constant Field Values
CF_VALUE_ENTITY
public static final String CF_VALUE_ENTITY
- See Also:
- Constant Field Values
LABELS_CF_KEY
public static final String LABELS_CF_KEY
- See Also:
- Constant Field Values
LABEL_GADGET
public static final String LABEL_GADGET
- See Also:
- Constant Field Values
NEW_LABEL_GADGET
public static final String NEW_LABEL_GADGET
- See Also:
- Constant Field Values
UpgradeTask_Build552
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)
doUpgrade
public void doUpgrade(boolean setupMode)
throws Exception
- Description copied from interface:
UpgradeTask
- Perform the upgrade.
- Specified by:
doUpgrade
in interface UpgradeTask
- Specified by:
doUpgrade
in class AbstractUpgradeTask
- Parameters:
setupMode
- Indicating this upgrade task is running during set up.
- Throws:
Exception
getShortDescription
public String getShortDescription()
- Description copied from interface:
UpgradeTask
- A short (<50 chars) description of the upgrade action
- Specified by:
getShortDescription
in interface UpgradeTask
- Overrides:
getShortDescription
in class AbstractUpgradeTask
getBuildNumber
public String getBuildNumber()
- Specified by:
getBuildNumber
in interface UpgradeTask
- Specified by:
getBuildNumber
in class AbstractUpgradeTask
- Returns:
- The build number that this upgrade is applicable to
Copyright © 2002-2012 Atlassian. All Rights Reserved.