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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

260 views 0 6
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