script runner - Error: No such property: config for class: groovy.lang.Binding

Neil Dixon August 27, 2018

I working through the Send a custom email tutorial from script runner and have encounter and the following issue:

Error: No such property: config for class: groovy.lang.Binding

the tutorial set the value in the Condition and Configuration

config.storyPoints = "hello there"

Then output the value in the email.

${config.storyPoints}

 

Which leads the error on preview of :

groovy.lang.MissingPropertyException: No such property: config for class: groovy.lang.Binding at groovy.lang.Binding.getVariable(Binding.java:63) at groovy.lang.Binding.getProperty(Binding.java:105) at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:172)

 

Any help would be appreciated.

 

1 answer

1 accepted

0 votes
Answer accepted
Mark Markov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2018

Hello @Neil Dixon

You should use

${storyPoints}

Istead of

${config.storyPoints}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events