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

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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 48m ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

40 views 3 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you