Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-41774

Customfields value is cleared when changing issuetype/project value on Quick Create

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • 6.3.15
    • 6.3.11
    • None

      Hello guys, I guess I just found out a bug :/

      Requirements : Having a text Customfield and also have possibility to change project/issuetype on create issue screen.

      To reproduce :

      1. Go to Dashboard
      2. Click on Quick Create button
      3. Fill Summary and text CF with values :
      4. Change either issuetype or project value
      5. text CF value has been reset whereas Summary value is still populated :

      Actually, all customfield values already selected before changing issuetype/project value are not kept.

      I made some debug already and I detected that customFieldValuesHolder parameter passed into

      public static Map<String, Object> buildParams(CustomField customField, FieldConfig config, Issue issue, FieldLayoutItem fieldLayoutItem, Object value, Map customFieldValuesHolder, Action action, Map displayParameters)
      

      of CustomFieldUtils class (before calling getVelocityParameters from customfield type class) doesn't contain customfield selected value from QuickCreate form.

      Don't hesitate to ask for some other details if you need it.

      Cheers

      Brice

        1. during.jpg
          during.jpg
          47 kB
        2. before.jpg
          before.jpg
          39 kB
        3. after.jpg
          after.jpg
          43 kB

              Unassigned Unassigned
              c2d01f50ea82 Brice Gestas [Elements]
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: