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

    • Bug
    • Status: Done
    • High
    • Resolution: Fixed
    • 5.1.8
    • 5.3.8
    • None
    • Sprint 37 - Ends Jan 29
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: