Inline script is not working in Script runner custom listener Edited

Hi,

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"
log.info "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.

Thanks.

 

1 answer

0 votes

Hi!

Question:

What if you do 

log.warn "this is a warning"

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

Cheers!

DYelamos

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

3,373 views 6 6
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