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

Add REST API endpoint to search for projects by name or key such as /rest/api/2/project/search

    XMLWordPrintable

Details

    • 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.

    Description

      Problem Definition

      In Jira Server and Data Center currently the only way to get back a project via REST API is to call the GET /rest/api/2/project which returns ALL projects. There is no means to search for projects or limit the request to only those projects that contain a specific string of text in the project name or project key.

      Suggested Solution

      Implement a new REST API endpoint such as Jira Cloud has done over in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get

      Which allows a query parameter that can match against the key or name.

      Why this is important

      It can be a costly call to force the REST API to return all the project names on an environment that has a lot of projects. Jira Cloud also has implemented this already.

      Workaround

      None

      Attachments

        Activity

          People

            Unassigned Unassigned
            aheinzer Andy Heinzer
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: