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 votes

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
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

421 views 7 5
Join discussion

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