Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Groovy variables enable more complex mapping of data. It could be that status or date needs to be mapped to other values.


Available scopes

The groovy script has the following objects / variables available

Variable nameDescription
issuethe current issue that the call is operating on
responsethe parent response from the previous runned call as String 
jsonSlurperUse JsonSlurper
jsonOutputUse JsonSlurper
scope

all previous defined variables or responses

Example if call A get
name = Peter as json response
then call B that get
the an issue with all its properties

then call C and c wants to access name it can do so by using

scope.name



See examples

  • No labels