Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-2968

Autocomplete for script file paths repositions certain numerical prefixes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.4.12
    • Fix Version/s: 5.4.45
    • Component/s: Script Editor
    • Labels:
      None
    • Sprint:
      Sprint 44
    • Critical Points:
      0.4

      Description

      To reproduce:

      • Create a script file (it can be completely empty) in your script root, whose name comprises:
        • A string of digits, followed by
        • a hyphen or an underscore, followed by
        • a string of letters
        • (plus the .groovy extension)
      • Go to any ScriptRunner form where you can supply a path to a script file (e.g. the Script Console) and start typing the name of the file you created.

      Expected behaviour: The autocomplete dropdown shows the full correct name of the file.

      Actual behaviour: The dropdown shows the name of the file with the numerical prefix (digit string + hyphen/underscore) turned into a suffix (hyphen/underscore + digit string). For example, 123-abc.groovy becomes abc.groovy-123.

        Attachments

          Activity

            People

            Assignee:
            rholban Roland Holban [X] (Inactive)
            Reporter:
            jchoules Joanna Choules
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: