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

    • 1
    • Hide

      Dear customers,

      Currently, all supported Jira DC versions support the REST endpoint for querying Projects by name and key.

      The latest documentation: https://developer.atlassian.com/server/jira/platform/rest/v10000/api-group-projects/#api-api-2-projects-picker-get

      Kind regards,

      Agata Kowal, Software Engineer Jira DC

      Show
      Dear customers, Currently, all supported Jira DC versions support the REST endpoint for querying Projects by name and key. The latest documentation: https://developer.atlassian.com/server/jira/platform/rest/v10000/api-group-projects/#api-api-2-projects-picker-get Kind regards, Agata Kowal, Software Engineer Jira DC
    • 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.

      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

              e2656c68d96d Agata Kowal
              aheinzer Andy Heinzer (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: