Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Code Block
scope.name



See examples

Page Tree
root@self