【Jira】Webhookのデバッグ方法

現在のJira CloudではWebhookに関するログを閲覧することができないためデバッグが難しくなりがちです※1,2。今回はWebhook.site を利用したデバッグの方法をご紹介します。

■手順

Webhook.site にアクセスすると下記画像のような画面が表示されるので赤枠内のURLをコピーします。

スクリーンショット 2020-01-08 15.54.11.png

コピーしたURLをJiraのWebhook設定画面のURLにペーストします。JiraのWebhookの設定方法についてはwebhook の管理 をご覧ください。

スクリーンショット 2020-01-08 16.20.24.png

Webhookのトリガーとして設定した操作を行い、Webhook.siteにリクエストの内容が表示されれば設定完了です。Webhook.siteでリクエストの内容を確認することができます。

 

※1 Webhookのログを閲覧できるようにしてほしいとの要望はWebhook logging for JIRA にて追跡されております。

リンク先にて Vote for this issue(この課題に投票) していただくと機能が実現する可能性が高くなります。よろしければご検討ください。また、Start watching this issue(この課題をウォッチ) で購読していただくと、進捗があった場合にお客様に通知が送信されるようになります。

※2 Jira Serverでは次の手順でデバッグログを有効化できます

  1. [ログとプロファイル]のページに移動します
  2. com.atlassian.webhooks に対してDEBUGログを有効にします

詳細については次のドキュメントをご覧ください。

Collect data to troubleshoot Webhook failure in Jira server 

2 comments

Adrian Stephen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2020

Hi @J. Sakurai 

 

You can enable debug logging to see some webhook information being sent out. 

  1. Go to the logging and profiling page
  2. Enable DEBUG logging for com.atlassian.webhooks

 

More details can be found here:

J. Sakurai
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 30, 2020

Hi @Adrian Stephen 

Thanks for the comment! I've added your comment to the article :)
The way you mentioned is for Jira Server, right?
There is no way to see webhook debug information for Jira Cloud.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events