Automation For Jira - Identifying the number rule execution over the past 30 days

プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

要約

Automation For Jira comes with the performance insight feature which provides an overview of your rules' performance by allowing you to view the execution count and duration. The problem with this feature is that it only shows the execution count for the top 20 automation rules.

The purpose of this to provide an SQL query that will return the number of automation rules executed over the last 30 days in Automation for Jira, and split them depending on their execution status (SUCCESS vs NO ACTIONS PERFORMED).

環境

Any version of Jira Data Center, Jira Software or Jira Service Management, with Automation for Jira bundled or installed as a user installed app.

ソリューション

You may run the SQL query below in the Jira Database, which was only written and tested for PostgreSQL:

select 
        AI."OBJECT_ITEM_NAME" as Rule_Name
        ,sum(CASE WHEN AI."CATEGORY" = 'SUCCESS' THEN 1 ELSE 0 END) AS Successful_Executions
        ,sum(CASE WHEN AI."CATEGORY" = 'NO_ACTIONS_PERFORMED' THEN 1 ELSE 0 END) AS No_Actions_Performed
        from "AO_589059_AUDIT_ITEM" AI
        join "AO_589059_AUDIT_ITEM_ASC_ITEM" AIAI on AI."ID" = AIAI."AUDIT_ITEM_ID" 
        where 1=1 
        AND AI."CATEGORY" != 'CONFIG_CHANGE'
        AND AI."CREATED" >= NOW() - INTERVAL '30 day'
        group by AI."OBJECT_ITEM_NAME";



最終更新日 2024 年 11 月 26 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.