Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50371

JIRA PIPELINE jiraSearch() finds max 50 items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • jira-plugin
    • None

      When I perform a query with the jiraSearch() in the Jenkins pipeline it only finds 50 items. I would have expected that it finds all items on the JIRA server that are matching the query.

      The SearchIssuesStep class calling the method getIssuesFromJqlSearch() of the JiraSession class in line 91.

       The result of the method is in line 135 and is:

      return service.getIssuesFromJqlSearch(jqlSearch, 50);
      

       Other parts of the JiraSession class are using the max integer value, like line 230.

      List<Issue> issues = service.getIssuesFromJqlSearch(query, Integer.MAX_VALUE);
      

       

            Unassigned Unassigned
            f0x Julian Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: