We have Jira Cloud. I am using in-browser script console.
I have a script that runs with expected outcome as long as the issue key is hardcoded; which of course defeats the purpose.
I have a Script Listener in place that triggers the script when a new comment is added.
All I want is the issue key of the of the work item on which this script will be triggered.
I have used "issue.key", "issue.id" and I get the same error
Error: java.lang.RuntimeException: groovy.lang.MissingPropertyException: No such property: id for class: com.adaptavist.hapi.cloud.jira.issues.Issues at Script_7434c7615767409bab7286815949fe66.run(Script_7434c7615767409bab7286815949fe66.groovy:5) at com.adaptavist.sr.cloud.workflow.AbstractScript.evaluate(AbstractScript.groovy:35) at com.adaptavist.sr.cloud.workflow.AbstractScript.runScriptFromRequest(AbstractScript.groovy:98) at com.adaptavist.sr.cloud.events.ScriptExecution.run(ScriptExecution.groovy:61) at WebhookExecution1_groovyProxy.run(Unknown Source)
I just need the issue key to be stored in a variable, in this case def issueKey
Thanks!
Screenshots below:

