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

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • 5.4.43, 5.4.47, 5.5.0
    • 5.5.2
    • Script Fields
    • None
    • Jira 7.6.8

      Jira 7.8.4

    • Sprint 50
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: