Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-62898

Extend JIRA REST API Search Request method

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • 0
    • 1
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Problem Definition

      The REST API's search endpoint does not provide any of the information in the properties of an issue. There is no ?expand= parameter available to have this information included.

      Looping over each issue returned from a search query to then gather its properties via:

      GET /rest/api/2/issue/{idOrKEYHere}/properties/com.servicerocket.jira.cloud.issue.salesforce.associations
      

      is extremely slow and runs up the toll on the number of API calls we have to make by the thousands.

      Suggested Solution

      Alter the search endpoint so that the properties are something that can be expanded and grabbed all at once. Something akin to:

      GET /rest/api/2/search?jql=ID&3D123&expand=properties
      
      

            Unassigned Unassigned
            aborzzatto Andre Borzzatto
            Votes:
            16 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: