MissingPropertyException exception (event for class) when running a workflow post function script

Sebastian Brookfield September 6, 2017

Hello,

We're currently running JIRA Software and Service Desk on one instance, and I've been trying to set up a script to run when an issue transitions using the Post Function.

Whenever it runs the script, it causes the following error:

2017-09-06 19:47:32,372 ERROR [workflow.ScriptWorkflowFunction]: Script function failed on issue: ARC-15301, actionId: 41, file: <inline script>
groovy.lang.MissingPropertyException: No such property: event for class: Script14
	at Script14.run(Script14.groovy:6)

 The script itself is simply:

log.info("Test!");

Does anyone know what the issue is? Is it a bug with our instance?
I've noticed a couple of bugs since we updated our JIRA to include Service Desk, could it be from this? If so, does anyone know how to fix it?

Thanks in advance,

Seb

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 11, 2017

The script you have on your post-function is clearly not what you say it is - for a start, it's failing on line 6, so there must be more script than just your 'log.info' bit.

Suggest an answer

Log in or Sign up to answer