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

Missing Binding variable in Simple scripted validator

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.5.2
    • Component/s: Workflow Functions
    • Labels:
      None
    • Sprint:
      Sprint 50
    • Critical Points:
      1

      Description

      Within a "Simple scripted validator" workflow function, the static type check reports an error using the "log" instance even if at execution time the "log" instance is available.

      Steps to reproduce:

      • Create a new transition validator of type "Simple scripted validator"
      • Add the following script inside:
        log.warn("Test execution")
        return true
        
      • The static type check will mark an error on the log line, showing "the variable [log] is undeclared"

      If you save and run the validator, the line

      log.warn("Test execution")

      will run correctly and you will see the output inside the log file.

        Attachments

          Activity

            People

            Assignee:
            rholban Roland Holban [X] (Inactive)
            Reporter:
            dmondardo Damiano Mondardo [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: