Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Time to SLA for Jira
Results will update as you type.
  • About Time to SLA for Jira
  • Get started
  • Use cases
  • SLA configuration
  • Track SLAs
  • Issue actions
  • Recalculation
  • Reports
  • Gadgets
  • SLA search 3.0
  • Import/Export
  • REST services
  • Settings
  • App integrations
  • Release notes
  • Help and support
    • FAQ: Time to SLA for Jira
    • FAQ: SLAs
    • FAQ: Calendars
    • FAQ: Recalculation
    • Common problems and solutions
      • SLA permissions do not work with project roles
      • SLA will not disappear when value field in JQL filter within its definition is updated.
      • I cannot enable the TTS Plugin
      • SLA calculation issues during workflow transitions
      • I cannot see all SLAs within an issue
      • SLA values in the database tables are incorrect
      • I cannot use the Time to SLA field to search or order
      • Jira logs show error messages about Automation for Jira plugin after upgrading TTS to 9.8.0+
      • Automation for Jira rules are disabled when Time to SLA is enabled
      • The SLA is missing for issues created with email
      • Time to SLA custom field doesn't display any value
      • 65K issue limit in JQL functions
      • Data within Time to SLA gadgets is missing or inconsistent
    • Advanced guides
    • Uninstall
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    65K issue limit in JQL functions
    Updated Aug 01

    65K issue limit in JQL functions

    This page is about Time to SLA for Jira Data Center.

    Problem

    Jira has a 65K issue limit for JQL functions by default due to the limitations of the underlying Lucene indexing mechanism, and there is a Jira issue for this problem. You might see the effects of this limit in TTS functions if you have many issues in your Jira instance. 

    Results

    If any custom function, including TTS custom functions, returns more than 65K issues, you will get empty results.

    Solution

    You can increase this limit to a higher value by setting the max clauses limit in jira-config.properties file as instructed here. We have summarized the steps below:

    1. Create jira-config.properties file under <jira-home> directory, if it does not already exist.

    2. Add the jira.search.maxclauses property with the new value, something higher than 65K. Please select the proper value for your environment and queries.

    3. Restart Jira.

    Alternatively, you can use date parameters in your TTS queries to narrow down your scope, as described here. This way, you can lower the result count and eventually run your queries without hitting the 65K limit.

    Keep in mind that the 65K limit is counted against each JQL function rather than the whole query. So even your complete query covers less than 65K issues; if any TTS JQL function exceeds this limit, you will get empty results. This case is a result of the lack of query optimization in custom JQL functions. TTS has to analyze all issues in your Jira instance and has to return all matching issues no matter which conditions (project, assignee, created date, etc.) you set before.

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 15, "requestCorrelationId": "78f9dea30dcb41c49f3c92219faf24d6"}