自動化フローをデバッグする

If a flow isn’t behaving as expected, the following information can help you troubleshoot and resolve issues.

1. 監査ログを確認する

Checking the audit log should be your first step when a flow is failing. When reviewing the audit log:

  • 表示されているエラーを確認します。エラーがある場合、問題の修正方法に関する提案や説明がありますか?

  • あるはずのエントリが表示されていない場合は、トリガーを正しく設定していないか、トリガーにフィルターが設定されており、そのフィルターが期待どおりにふるまっていないかのいずれかです。

  • 監査ログの編集内容を、アプリで見つけられる履歴情報 (Jira の作業項目履歴や Confluence のページ履歴など) と比較します。

  • For Jira automation, make sure all the relevant fields on the right screens in Jira?

Learn how to access the audit log.

2. スマート バリューをデバッグする

"ログ" アクションを使用

[ログ] アクションでは、スマート値を含む監査ログに値が追加されます。これは、複雑なスマート値機能をテストする際に便利です。

Log message: This should evaluate to 2: {{#=}}1 + 1{{/}}

 

自動化ルールの "ログ" アクション。"ログ メッセージ" フィールドに値「{#=}1 + 1{/} should equal to 2」が入力されています

デバッグを使用

Using the Log action requires you to add an additional step to your flow. To avoid this, you can use the {{#debug}} function.

スマート バリューをデバッグ タグで囲うことで、スマート バリューを通常のように処理できます。また、監査ログ内に値を表示することで、より役立つ情報が確認できます。

{{#debug}}{{#=}}1 + 1{{/}}{{/}}

When this flow now executes, the audit log will contain:

Debug message 2
自動化ルールの監査ログ。ルールには [成功] のステータスが表示されて、[デバッグ メッセージ] には 2 と表示されています。

3. テストを簡単、クリーンにする

  • Copy the flow and disable the original before testing. This allows you to revert to the original flow easily if you make changes.

  • Use the Manual trigger (Jira only) to execute a flow from a work item at any time. You can also use the Scheduled trigger to run a flow for the purposes of testing.

  • 値を入力するアクションをテストするときは、スマート値 {{now}} を使用して現在の時刻を含めます。これによって、いつ編集が行われたのかと、値が変更されたかどうかがわかります。

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。