Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: jira
    • Labels:
      None

      Description

      From the documentation: 'Fix Version DESC, Type sorts first by the Fix Version in descending order and then by Type in ascending order'. The actual result is however the other way round: the sorting by type is done first.

      1. MCHANGES-217.zip
        2 kB
        Lukas JOSEFIK

        Issue Links

          Activity

          Lukas JOSEFIK created issue -
          Hide
          Lukas Theussl added a comment -

          Attaching small demonstration project.

          Show
          Lukas Theussl added a comment - Attaching small demonstration project.
          Lukas Theussl made changes -
          Field Original Value New Value
          Attachment MCHANGES-217.zip [ 53005 ]
          Hide
          Lukas Theussl added a comment -

          Maybe this depends on the JIRA version. There is a comment in the sorting routine in AbstractJiraDownloader that says:

          // N.B. Add in reverse order (it's the way JIRA likes it!!)

          Has the behavior changed in a certain JIRA version?

          Show
          Lukas Theussl added a comment - Maybe this depends on the JIRA version. There is a comment in the sorting routine in AbstractJiraDownloader that says: // N.B. Add in reverse order (it's the way JIRA likes it!!) Has the behavior changed in a certain JIRA version?
          Lukas Theussl made changes -
          Link This issue relates to MCHANGES-94 [ MCHANGES-94 ]
          Hide
          Dennis Lundberg added a comment -

          Using version 2.3 of this plugin to connect to ASF JIRA, which is running JIRA 3.13.5, works as documented.

          Using version 2.3 of this plugin to connect to Codehaus JIRA, which is running JIRA 4.1.2, doesn't work as documented. The order of the sort fields is reversed.

          My guess is that this changes first occurred in JIRA 4. The version of JIRA is printed in the downloaded jira-results.xml file. I'll have a go at trying to extract it...

          Show
          Dennis Lundberg added a comment - Using version 2.3 of this plugin to connect to ASF JIRA, which is running JIRA 3.13.5, works as documented. Using version 2.3 of this plugin to connect to Codehaus JIRA, which is running JIRA 4.1.2, doesn't work as documented. The order of the sort fields is reversed. My guess is that this changes first occurred in JIRA 4. The version of JIRA is printed in the downloaded jira-results.xml file. I'll have a go at trying to extract it...
          Hide
          Lukas Theussl added a comment -

          Thanks for looking at this! IMO it's enough to just document it.

          Show
          Lukas Theussl added a comment - Thanks for looking at this! IMO it's enough to just document it.
          Hide
          Dennis Lundberg added a comment -

          I managed to add some code to extract the JIRA version from the downloaded xml file. Unfortunately the sorting parameters are passed on the URL when the xml file is downloaded. So we have a chicken and egg problem. We could do an extra connection to JIRA just to learn which version it is. Then do the normal query.

          Anyway, I'll commit the code to extract the version info and log that at info level. It will be useful for debugging purposes.

          Show
          Dennis Lundberg added a comment - I managed to add some code to extract the JIRA version from the downloaded xml file. Unfortunately the sorting parameters are passed on the URL when the xml file is downloaded. So we have a chicken and egg problem. We could do an extra connection to JIRA just to learn which version it is. Then do the normal query. Anyway, I'll commit the code to extract the version info and log that at info level. It will be useful for debugging purposes.
          Hide
          Dennis Lundberg added a comment -

          Logging of JIRA version added in r1062503.

          Documentation added in r1062507.

          Show
          Dennis Lundberg added a comment - Logging of JIRA version added in r1062503 . Documentation added in r1062507 .
          Dennis Lundberg made changes -
          Fix Version/s 2.4 [ 16043 ]
          Assignee Dennis Lundberg [ dennislundberg ]
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:14:45 UTC 2015 [ 1428225285377 ]
          Mark Thomas made changes -
          Workflow jira [ 12718051 ] Default workflow, editable Closed status [ 12749325 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 22:40:15 UTC 2015 [ 1428273615853 ]
          Mark Thomas made changes -
          Workflow jira [ 12955482 ] Default workflow, editable Closed status [ 12992580 ]
          Mark Thomas made changes -
          Reporter Lukas JOSEFIK [ lukas ] Lukas Theussl [ ltheussl ]
          Mark Thomas made changes -
          Assignee dennislundberg [ dennislundberg ] Dennis Lundberg [ dennisl@apache.org ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          18d 9h 41m 1 Dennis Lundberg 23/Jan/11 13:56

            People

            • Assignee:
              Dennis Lundberg
              Reporter:
              Lukas Theussl
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development