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

Issue Collector Generating an Oops Error After Adding a Required Field

XMLWordPrintable

      If a custom field is marked as required on a project associated with an Issue Collector, without updating the Issue Collector form itself, submitting a ticket on the collector will generate an 'oops' error.

      Steps to Reproduce

      1. Create a test project, TEST
      2. Create a basic issue collector for TEST project
      3. Remove all additional fields from collector form (leaving only Summary, Name, Email) and save collector
      4. Embed the html or javascript collector code into the JIRA announcement banner or whatever test environment of choice
      5. Test creating feedback to confirm it works
      6. Create a new custom field (single text field), CustomField1 and configure for Global projects, and add to all screens
      7. Navigate to 'Default Field Configuration' and mark CustomField1 as required
      8. Trigger a new feedback on issue collector (noting that the field does not show on screen)

      Expected Results

      Ticket is created, or 'required missing field' error should be generated

      Actual Results

      'Oops' error is generated on screen, and a similar 'Detected missing fields in collector' x is thrown in logs:

      2013-10-18 15:11:41,024 http-bio-9610-exec-8 ERROR admin 911x4581x1 1io5v0c 0:0:0:0:0:0:0:1%0 /rest/collectors/1.0/template/custom/ded93db8 [collector.plugin.rest.TemplateResource] Detected missing fields in collector 'Test Project Collector' (id: ded93db8, project: TEST): [customfield_10200]
      

      Workaround

      1. Navigate to edit the Issue Collector Form, and scroll to the bottom
      2. Confirm that required field is automatically added to the form
      3. Click update

        1. oops.png
          30 kB
          ChrisA

            Unassigned Unassigned
            cshim ChrisA
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: