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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Done
    • 5.5.0.3-jira8
    • 5.6.1
    • Script Fields
    • None
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: