Debug an automation flow
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. スマート バリューをデバッグする
"ログ" アクションを使用
The Log action adds values into the audit log, including smart values. This can be useful when testing complex smart value functions.
Log message:
This should evaluate to 2: {{#=}}1 + 1{{/}}
デバッグを使用
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
23. テストを簡単、クリーンにする
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.
When testing an action that enters a value, use the smart value {{now}} to include the current time. This allows you to see when the edit was made and if the value changed.
この内容はお役に立ちましたか?