自動化ルールをデバッグする
ルールが期待どおりに動作しない場合のトラブルシューティングや問題解決には、以下の情報が役立ちます。
1. 監査ログを確認する
Checking the audit log should be your first step when a rule 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{{/}}
デバッグを使用
[ログ] アクションを使用するには、ルールに別のコンポーネントを追加する必要があります。{{#debug}} 関数によって、これを回避できます。
スマート バリューをデバッグ タグで囲うことで、スマート バリューを通常のように処理できます。また、監査ログ内に値を表示することで、より役立つ情報が確認できます。
{{#debug}}{{#=}}1 + 1{{/}}{{/}}このルールを実行すると、監査ログには次の項目が含まれるようになります。
Debug message
23. テストを簡単、クリーンにする
テストの前に元のルールをコピーしてから無効にすると、変更しても簡単に元のルールに戻ることができます。
Use the Manual trigger (Jira only) to execute a rule from a work item at any time. You can also use the Scheduled trigger to run a rule 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.
この内容はお役に立ちましたか?