Create an upgrade task which fixes errant field configurations for GH managed fields

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • Component/s: None
    • None

      We have some issues today with our GH managed fields.

      1. Some of our fields have duplicates created
      2. Some of our fields have multiple contexts when there should only be one

      The number of already affected customers is large enough to warrant writing an upgrade task. We hope that this problem will not occur in the future, thanks to fixes implemented in GHS-7984.

      The task will need to:

      • remove duplicate fields/contexts
      • merge data from multiple fields/contexts into one field
      • ensure that the "managed" field from GH's perspective refers to the correct field

      The fields that currently cause trouble are

      • Epic Name
      • Epic Status
      • Sprint

      Both fields will have to have their values merged into the field the upgrade task choses to be the "default field" (which needs to be correctly set in the properties too).

      Test Brainstorming

      • claim the default field as default still

      SPRINT

      • find all fields by name
      • merge data = take default value if you can, or latest duplicate field value if you can't
      • rename duplicate fields to obsolete and don't delete
      • fix up field configurations
      • relock?
      • set reindex message

      EPIC NAME

      • similar to sprint

      EPIC STATUS

      • fetch fields by name
      • resolve name to ID and use that everywhere
      • merge values
      • fix up field configurations

        There are no Sub-Tasks for this issue.

            Assignee:
            Unassigned
            Reporter:
            Michael Tokar
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: