Automation rule to count how many times an issue has passed through a specific status

お困りですか?

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

コミュニティに質問

robotsnoindex

プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。

要約

For reporting purposes, admins sometimes want to know how often an issue has been through one specific status. If the issue has a long lifecycle, this information is hard to find from the issue history. In such cases, this article aims to provide an easier way to track this information using custom fields and automation rules.

ソリューション

The below steps have to be followed to create the custom field and the automation rule; we are going to use the Reopened status as an example:

  1. Create a custom field of Number type.
  2. Create a Jira automation rule as below:
    1. Trigger: Issue Transitioned > Select the desired status.

    2. Action: Edit issue > Choose the field created in step 1 and the below smart value to add 1 to the field count.
      {{#=}}{{issue.Number field}} + 1{{/}}

  3. Once the issue is transitioned from another status to Reopened, the custom field will be updated with +1.

その他の考慮事項

The drawback of this approach is that you need to set a different rule and custom field for every status you want to count and it counts toward your automation usage limits:

Last modified on Mar 7, 2025

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

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