Searching for issues in the linked issue field reaches the rate limit

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      When searching for issues using the linked issues field, we reach the rate limit if the instance has a lot of issues.

      This happens because whenever a letter or number is typed, the field triggers an API request to search for issues.

      Steps to Reproduce

      1. Go to an instance with a large number of issues;
      2. Open an issue and click on Link Issues;
      3. Try to search for issues by typing different things and deleting them;

      Expected Results

      The issues are being returned with no error.

      Actual Results

      A lot of 429 errors are returned, and the user session breaks for a while.

      Workaround

      • Reduce the number of issues from the instance;
      • Search for issues using the issue key directly;

      Finding projects with issues updated a long time ago:

      We have a REST API endpoint that returns the project details including the last issue updated time under the project.

      You can use the following cUrl:

      curl --request GET \
        --url 'https://your-domain.atlassian.net/rest/api/3/project/search?expand=insight' \
        --user 'email@example.com:<api_token>' \
        --header 'Accept: application/json' 

      In response, the request will return a lot of information from the project, including the Insight, with the last Issue updated time:

      "insight": { 
            "totalIssueCount": 22,
            "lastIssueUpdateTime": "2023-04-18T17:43:00.712-0300"
      } 

      For more information regarding this request, you can read the following documentation:

      You can use this request to plan which project you will archive.

      To archive a project, you can follow the steps below:

      • Under your instance, click on Projects > View all projects;
      • Search for the project that will be archived;
      • Click on ••• > Archive;

      It's important to highlight that when a project is archived, its issues won’t appear in basic or advanced search results. You can still access these issues through direct links, but you won’t be able to edit them.

      If you need to use this project in the future, you can restore it by:

      1. Choose  Setting Icon > Projects.
      2. Select Archive from the sidebar. 
      3. Find your project and select ••• > Restore.

            Assignee:
            Kunal Naithani
            Reporter:
            Tiago Fragoso (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: