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

Behaviour server-side script not working if 'Issue Lock for Jira' is installed since SR 6.30.0

    XMLWordPrintableJSON

Details

    • SR4J Sprint 129 (6.58)
    • 2.3

    Description

      When Issue Lock for Jira is installed and configured, ScriptRunner Behaviour server-side scripts will not execute. This only affects the edit screen.

      This issue is not reproducible on SR 6.29.0. See recording: SR 6.29.0 Recording.mov

      But on SR 6.30.0 until the latest, it is reproducible. See recording: SR 6.30.0 Recording.mov

      Steps to Reproduce

      1 - Install 'Issue Lock for Jira' and make sure to configure your project:

       

      2 - Create an issue and make sure it has a 'Select List' with simple values e.g. (A, B)

      3 - Create a Behaviour and add the 'Select List' field and use the script below:

      def selectListValue = getFieldById(getFieldChanged()).getValue().toString()
      def description = getFieldById('description')
      
      if (selectListValue == 'A') {
          description.setHidden(true)
      } else {
          description.setHidden(false)
      }

      4 - Edit the issue and select the value 'A' for the Select List field

      Expected Behaviour

      The server-side script should be executed, and the description field should be hidden when 'A' is selected.

      The network request (runvalidator.json) should have all the fields on the payload:

       

      Actual Behaviour

      The description field is not hidden when 'A' is selected. In this case, the server-side script is not executed.

      Looking at the network request (runvalidator.json), the fields on the Jira form are missing from the payload:

       

      Additional Info

      Tested on versions:

      • Jira 8.15.1
      • ScriptRunner 6.29.0 (Not reproducible)
      • ScriptRunner 6.30.0 - 6.55.0 (Reproducible)
      • Issue Lock for Jira 4.3.1

      Attachments

        1. Issue Lock for Jira config.png
          Issue Lock for Jira config.png
          127 kB
        2. SR 6.29.0 Recording.mov
          10.73 MB
        3. SR 6.29.0 runvalidator.png
          SR 6.29.0 runvalidator.png
          99 kB
        4. SR 6.30.0 Recording.mov
          7.73 MB
        5. SR 6.30.0 runvalidator.png
          SR 6.30.0 runvalidator.png
          106 kB

        Issue Links

          Activity

            People

              jvallinas Javi Vallinas
              hibrahim Helmy Ibrahim
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: