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

Assigning closures with no parameters to script field bindings doesn't type check

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 5.5.0.3-jira8
    • Fix Version/s: 5.6.1
    • Component/s: Scripted Fields
    • Labels:
      None
    • Critical Points:
      0.8

      Description

      To reproduce:

      • Go to the creation page for a new custom scripted field.
      • Put the following in the code box:
        enableCache = { -> false }
        

      Expected: Code type checks as correct.

      Actual: "Failed type checking"

      The same seems to happen for any variable provided in the bindings which has a type of Closure.

        Attachments

          Structure

            Activity

              People

              Assignee:
              jchoules Joanna Choules
              Reporter:
              jchoules Joanna Choules
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel