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

Script Editor losing script on the dialog "Save" button

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Duplicate
    • Affects Version/s: 6.28.0
    • Fix Version/s: None
    • Component/s: Script Editor
    • Labels:
      None
    • Critical Points:
      0

      Description

      Script Editor script is losing when saving the script from a dialogue.

      Steps to Reproduce

      1. Navigate to Script Editor.
      2. Create two scripts/files with any contents.
      3. Open the first script and modify it. (Don't click the "Save" button after changing the script)
      4. Then, click on the second script. A dialogue pops up and prompts to save the first script.
      5. Click "Save" to save the modified first script. Now you'll see the second script.
      6. Go back to the first script.

      Expected Behaviour

      The changes in the first script are being saved.

      Actual Behaviour

      The first script gets lost, and it is empty now. So, the contents in the first script are gone.

      Workaround

      1. Before navigating to another script, click the "Save" button located at the top right of the frame after changing the script.

      Additional Info

      • Attached a screen recording
      • Reproduced the issue in ScriptRunner version 6.28.0 (latest now), but not in version 6.27.0

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jpang JJ Pang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: