Script Runner- REST Endpoints Logging

Jerry Garza January 6, 2017

I have created custom REST Endpoints to consume JSON from an external API. However, I would like to be able to see the output of the http call and parameters being sent. Is there a log file or a way to see that?

I would like to avoid having to setup a whole dev environment if it is simple to do.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
adammarkham
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 6, 2017

You can use something like the following:

def response = "my-response"
log.warn(response)

Its likely that will show up in the logs. You should be able to change the logging level for ScriptRunner by setting "com.onresolve" logger to some other level like INFO or DEBUG.

Jerry Garza January 6, 2017

Thanks Adam. When you say "com.onresolve" is that the "com.onresolve.jira.groovy"?

adammarkham
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 6, 2017

Yes that would be the one.

Jerry Garza January 17, 2017

Thanks! That helped!

TAGS
AUG Leaders

Atlassian Community Events