Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-34161

Unable to create new issue onFirefox version 28 and 30 - description is required

    XMLWordPrintable

Details

    Description

      Observed Behavior

      "Description is required" is shown although the description fields already been fill up.

      Expected Behavior

      "Description is required" should not be shown and user able to insert.

      It seems Firefox more strict on the missing bracket in the file jira_createissuepanel.js

         var issue = {};
              issue.fields = {
                  project: {
                      id: AJS.$('.project-select option:selected', $myform).val() 
                  },
                  issuetype: {
                      id: AJS.$('.issuetype-select option:selected', $myform).val()
                  },
                  summary: AJS.$('.field-group [name="summary"]', $myform).val(),
                  description:  AJS.$('.field-group [name="description"', $myform).val()
              };
      
              $myform.children('.create-issue-required-fields')
                         .children('.jira-field')
                         .children('input,select,textarea').not(".select2-input")
                         .each(function(index, formElement) {
                      var field = AJS.$(formElement);
                      issue.fields[field.attr("name")] = jiraIntegration.fields.getJSON(field);
              });
      

      which should be

      description:  AJS.$('.field-group [name="description"]', $myform).val()
      

      To reproduce the issue from scratch, you need to set the description field in the field configuration to be a required field on JIRA side, open a new page with FF or IE then create an issue with the description.
      Due to the bug, the http request is sent with the parameters:

      {"issues":"[{"fields":{"project":{"id":"10100"},"issuetype":{"id":"3"},"summary":"901"}}]} 
      

      which the description field value is not included.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sraj Suren Raj
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: