Inline script is not working in Script runner custom listener Edited


I tried implementing a custom listener in script runner. I configured the custom listener for all projects in my jira instance and to the "Issue Created" and "Issue Updated" events.

Jira server version: 7.2.10

Script runner version: 5.0.14

This is the small snippet I tried

log.debug "hello" "test"

The listener give no failure in the execution but I do not see the log message either in catalina.out  or in atlassian-jira.log files, instead I see a warning message 

WARNING [http-bio-443-exec-12] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI jiraserver/jira/rest/scriptrunner/latest/canned/com.onresolve.scriptrunner.canned.common.StaticCompilationChecker, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.

Please post any ideas on how to execute the custom listener in script runner.



1 answer



What if you do 

log.warn "this is a warning"

Your log level could be too high for these statements to appear.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

466 views 8 27
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