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

EditableScriptFieldTrait tries to fetch script configurations by field config ID rather than field config scheme ID

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.4.43, 5.4.47, 5.5.0
    • Fix Version/s: 5.5.2
    • Component/s: Scripted Fields
    • Labels:
      None
    • Environment:

      Jira 7.6.8

      Jira 7.8.4

    • Sprint:
      Sprint 50
    • Critical Points:
      8.3

      Description

      The getConfigurationForFieldId method in EditableScriptFieldTrait passes the numerical ID of a field config into the ScriptFieldManager#getConfigFor method, but getConfigFor expects the ID of a field config scheme. Thus whenever the ID of a field config does not match the ID of its enclosing scheme, ScriptRunner will fail to find the configuration data which it had previously stored for the corresponding scripted field.

      The most prominent symptom of this is that scripted issue picker fields fail to render on various screens.

      Related error message:

      Unable to run plugin code because of 'java.lang.Exception - Missing parameters for fields'.  

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tbatagiannis Thanos Batagiannis
              Reporter:
              jchoules Joanna Choules
              Votes:
              6 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: