Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-3560

Task board removes the "Please Select..." option from the list of available resolutions - causing it to default to the top one, even when no default is set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.7.2
    • None
    • None
    • None

    Description

      Steps to reproduce:

      1. Remove defaults for resolutions in JIRA
      2. Go to the taskboard and transition an issue to resolved or closed - notice there is no "Please Select..." option and the top resolution is auto selected
      3. Go anywhere else in JIRA and perform the same transition (on the taskboard, press '.' and then choose close/resolve) and note the Please Select option will be there.

      I messed about with GreenHopper, thanks to Michael Ruflin's help and if you change this line in gh-dialog.js:

      if (! resolutions[$elem.attr('value')]) {
      

      To this:

      if (! resolutions[$elem.attr('value')] && $elem.attr('value') != '-1') {
      

      It no longer removes the Please Select... option, and preserves the other functionality - i.e. all other restricted resolutions are still restricted and we don't unexpectedly lose any, in my testing. I don't know if -1 refers to the place in the list, or if -1 is a designation for the "Please Select..." option specifically, I hope the latter though.

      I know we don't have any plans to make changes to the Task Board this late in the game, but it would be great if we could make this change to help out the customers that don't have a default resolution set.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: