public class

UpgradeTask_Build552

extends AbstractUpgradeTask
java.lang.Object
   ↳ com.atlassian.jira.upgrade.AbstractUpgradeTask
     ↳ 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
void doUpgrade(boolean setupMode)
Perform the upgrade.
String getBuildNumber()
String getShortDescription()
[Expand]
Inherited Methods
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

public void doUpgrade (boolean setupMode)

Perform the upgrade.

Parameters
setupMode Indicating this upgrade task is running during set up.
Throws
Exception

public String getBuildNumber ()

public String getShortDescription ()