XML export fails with 400 Bad Request when Priority field is not available

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Medium
    • None
    • Affects Version/s: 5.0.6, 5.0.7, 6.0
    • Component/s: Navigation - Export
    • Environment:

      JIRA On-Demand 5.0.6
      JIRA 6.0.0 EAP (v6.0-m06.1#6042-sha1:19afe78)

    • 5
    • 2
    • Severity 2 - Major

      Export of JIRA issues in XML format fails in case when project does not have a Priority field available. It returns a HTTP 400 error code:

      HTTP Status 400 - Not able to sort using field 'priority'.

      XML export fails for both JQL and old-style queries.

      What's interesting, it works for HTML view.

      Steps to reproduce:
      1) Create a project with a Priority field not associated to any issue type
      2) Create an issue in the project
      3) From Issue Navigator select Filters>Most important (it works), next Views>XMLOpen (it fails)

      Sample URL:
      /sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+ABC+AND+resolution+%3D+Unresolved+ORDER+BY+priority+DESC&tempMax=1000

      Workaround:
      Associate Priority field with issue type.

        1. jira_5.1.7.png
          35 kB
          Marek Parfianowicz
        2. jira600eap_1.png
          39 kB
          Marek Parfianowicz
        3. jira600eap_2.png
          32 kB
          Marek Parfianowicz

            Assignee:
            Unassigned
            Reporter:
            Marek Parfianowicz
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: