Health Check: Automation Queue Count

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

To use the health check for automation queue count, upgrade the ATST plugin to at least version 2.6.0 and the Jira version to 10.4.0.

Solution

About the health check

This health check ensures the health of automation rule executions. Async rules in automation are executed through a queue mechanism. Messages get inserted into the queue due to Jira events OR when async rule execution encounters branches. The health check is reported as unhealthy when the automation queue has too many unprocessed items.

Understanding the results

Jira Data Center

Icon

Result

What this means

Pass

The automation queue contains items lesser than the alert threshold

Items in the automation queue are getting processed at a healthy rate

⚠️Warning

The automation queue has too many entries.

Many entries are added to the Automation Queue, which might impact system performance and cause delayed automation rule executions. An administrator should troubleshoot the issue.

What happens if I ignore the warning?

The performance of automation process could be affected. This means that some automation rules may experience delays in execution.

Troubleshooting

As a first step, check whether you are receiving this alert with no degradation in system performance or impact on business processes that rely on automation. If that is the case, you could consider increasing the alert threshold.

The alert threshold configuration can be modified by adding the property jira.diagnostics.thresholds.max-automation-queue-size in the jira-config.properties file. The default value of the alert threshold is 10,000.

Edit alert configuration

Steps to edit the jira-config.properties file can be referred from Edit the jira-config.properties file in the Jira server | Jira | Atlassian Documentation

If you are receiving this alert continuously and notice a lot of delay in rule execution, it could potentially start to impact business processes that rely on automation.

You could follow the steps below to troubleshoot further.

  1. Check if there is a system-wide performance degradation (such as slow page load or slow JQL) in Jira. If this is the case, automation’s performance also gets degraded. See the articles below to troubleshoot further

    1. Troubleshoot performance issues in Jira server | Jira | Atlassian Documentation

    2. Jira is slow due to poor database connection performance | Jira | Atlassian Documentation

    3. Common causes for Jira Server crashes and performance issues | Jira | Atlassian Documentation

  2. Investigate rule execution: Identify rules that are taking more execution time and consider optimising or disabling them using the articles below

    1. View performance insights for automation rules | Automation for Jira Cloud and Data Center | Atlassian Documentation

    2. Troubleshooting slow rule executions in Automation for Jira | Jira | Atlassian Documentation

    3. Check your rule statistics with queries | Automation for Jira Cloud and Data Center | Atlassian Documentation

    4. Best practices for optimizing automation rules | Automation for Jira Cloud and Data Center | Atlassian Documentation

  3. Investigate queue

    1. Run curl below to identify type of events that contribute to the growth of queue and assess if those events are expected during normal system operation. If not, trace the root cause of events (such as incorrectly configured bot making a lot of REST calls, events from 3rd party plugin, etc) and fix them

      curl -D- \ -X POST \ -H "Authorization: Bearer <token>" \ -H 'Accept: application/json' \ '$BASEURL/rest/cb-automation/latest/automation-queue/insight/events/by-type' Optional query params: limit=20
    2. Run curl below to identify top rules that contribute to the growth of queue. Consider optimising / disabling them using the articles mentioned in step-2

      curl -D- \ -X POST \ -H "Authorization: Bearer <token>" \ -H 'Accept: application/json' \ '$BASEURL/rest/cb-automation/latest/automation-queue/insight/events/by-rule' Optional query params: limit=20"

Providing data to Atlassian Support

If the above steps do not provide any resolution, create a support ticket at support.atlassian.com and attach the requested information to the ticket by following the steps below:

  1. Go to Administration ⚙ > System > Logging and profiling

    1. SelectConfigure logging level for another package

    2. Use com.codebarrel.automation as the package name and select "DEBUG" for the Logging level

    3. Use com.codebarrel.jira.plugin.automation as the package name and select "DEBUG" for the Logging level

  2. Go to Administration ⚙ > System > Troubleshooting and support tools > Diagnostic settings

    1. Make sure that the 2 settings below are enabled (which will allow to automatically generate thread dumps):

      • Thread diagnostics

      • Runtime diagnostics

  3. Wait for about 30 minutes so that we can collect enough logs and thread dumps

  4. Go to Administration ⚙> System > Troubleshooting and support tools > Create support zip.

    1. Make sure that the option Runtime diagnostics data is ticked

    2. SelectCreate zip and download the support zip. In case you have a Data Center cluster, repeat this step for each node.

  5. Go to Administration ⚙> System > Automation rules > ... > View performance insights

    1. Take a screenshot of the Performance Insights page

  6. Run the 2 curl commands mentioned in the Troubleshooting section of this page

  7. Attach to the support ticket the following information:

    1. The support zip(s)

    2. The screenshot of the Automation performance insights page

    3. The output from the 2 curl commands

Updated on May 22, 2025

Still need help?

The Atlassian Community is here for you.