Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-274

Syntax error when pasting sample scripts from documentation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.1.8
    • Fix Version/s: 5.3.8
    • Labels:
    • Sprint:
      Sprint 37 - Ends Jan 29
    • Critical Points:
      0

      Description

      Script Console script in the documentation - List all Repository Sizes By Project

      make use of the toPrettyJsonString() and it throws a 

      2017-12-19 12:01:15 [http-nio-8080-exec-8] WARN c.o.s.r.r.common.UserScriptEndpoint - Script console script failed: 
      groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.toPrettyJsonString() is applicable for argument types: () values: []
      at myExampleScripts.fooBB.run(fooBB.groovy:28)

        Attachments

          Activity

            People

            Assignee:
            amarkham Adam Markham
            Reporter:
            tbatagiannis Thanos Batagiannis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: