2017-10-13 39 views
0

私はプログラマで、JiraのGroovyで作業を開始して、いくつかのタスクを自動化しています。JiraでのGroovyのデバッグScriptrunnerインラインエディタ

私はJiraのインラインエディタを使用してカスタムリスナースクリプトを作成しようとしていますが、過去にHello Worldプログラムを動作させようとしていません。

スクリプトが実行されていて、出力が見えない場合は、私は実際にスクリプトをデバッグする方法を理解するための助けが必要です。必要に応じてJiraログを読んで)、実際にこのツールの使い方を学び始めることができます。

インラインエディタでの作業を開始するための一般的なガイドラインとして、HEREという情報を使用しています。

もう少し文脈が分かれば、私が尋ねた別の関連する質問が表示されますHERE。私はこのスクリーンショットのように、私は情報に基づいて、リスナーを装着されているイベントのデバッグするためにデバッグレベルを設定した

HEREが見つかりました:ここ Debug Config

は、インラインのスクリーンショットです私はJIRAで作業しています。このスクリーンショットでは、単に「Hello」を出力しようとしていて、「プレビュー」ボタンをクリックしたばかりです: enter image description here

ご覧のとおり、画面下部の[結果]タブには興味のないものです。 'Logs'タブも空で、 'Timing'タブには 'Elapsed:0 ms CPU time:0 ms'と表示されるため、何も起こっていないようです。

私は(ファイルcatalina.2017-10-13.txtで)サーバにログをチェックすると、私は次の出力を参照してください。

13-Oct-2017 07:01:50.942 WARNING [http-nio-8080-exec-6] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://somevmserver:8080/rest/scriptrunner-jira/latest/listeners/com.onresolve.scriptrunner.canned.jira.workflow.listeners.CustomListener/params, 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. 
13-Oct-2017 07:02:26.740 WARNING [http-nio-8080-exec-12] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://somevmserver:8080/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. 
13-Oct-2017 07:02:26.974 WARNING [http-nio-8080-exec-1] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://somevmserver:8080/rest/scriptrunner-jira/latest/listeners/com.onresolve.scriptrunner.canned.jira.workflow.listeners.CustomListener/preview, 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. 

この出力が全体の多くを意味するものではありません私は、それはスクリプトをプレビューしようとした結果としてそれが作成されていることは明らかです。

インラインエディタでエラーが表示されず、とても簡単なコードなので、そうは思わないでしょう。

私はこれが適切であると考えることができますが、それは私たちの実稼働環境から複製されたJiraのテストインスタンスであり、ベースURLは引き続きプロダクト環境のURLに設定されているということです。それには支障はないのかどうかはわかりませんが、私は本当にJiraの管理者ではなく、プログラマーだけがこれをやることを任されていますので、私が必要としないところで手探りに行きたくはありません。

ありがとうございます!

答えて

0

ログに「Hello」というデバッグメッセージが表示されるようにするには、選択したプロジェクトの問題を更新する必要があります。結果、ログ、およびタイミングタブは、このビューでは無意味です。選択したプロジェクトでリスナーに問題のアップデートを実行させ、atlassian-jira.logファイルでデバッグメッセージを検索してください。

ヒント:ブラウザでログを表示するには、使用することができ、このJIRAアプリhttps://marketplace.atlassian.com/plugins/com.cps.lastLog/server/overview

関連する問題